# Example: Requesting a full matrix by VanRanden.
# Get G matrix.
G <- G.matrix(M = geno.apple, method = "VanRaden")$G
G[1:5, 1:5]
# \donttest{
# Example: Requesting a sparse form by VanRanden.
# Get G matrix.
G <- G.matrix(M = geno.apple, method = "VanRaden", sparseform = TRUE)$G.sparse
head(G)
head(attr(G, "rowNames"))
# }
Run the code above in your browser using DataLab