get_q_matrix | R Documentation |
gt_admix
objectThis function retrieves a single Q matrix from a gt_admix
object
based on the specified k value and run number.
get_q_matrix(x, ..., k, run)
x |
A |
... |
Not used |
k |
The k value of the desired Q matrix |
run |
The run number of the desired Q matrix |
A single Q matrix from the gt_admix
object
# Read example gt_admix obejct
admix_obj <-
readRDS(system.file("extdata", "anolis", "anole_adm_k3.rds",
package = "tidypopgen"
))
# Extract a Q matrix
get_q_matrix(admix_obj, k = 3, run = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.