| q_matrix | R Documentation |
q_matrix objectTakes a single Q matrix that exists as either a matrix or a data frame and
returns a q_matrix object.
q_matrix(x)
x |
A matrix or a data frame |
A q_matrix object
# Read in a single .Q file
q_mat <- read.table(system.file("extdata", "anolis", "anolis_ld_run1.3.Q",
package = "tidypopgen"
))
class(q_mat)
# Convert to a Q matrix object
q_mat <- q_matrix(q_mat)
class(q_mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.