get_p_matrix | R Documentation |
gt_admix
objectThis function retrieves a single P matrix from a gt_admix
object
based on the specified k value and run number.
get_p_matrix(x, ..., k, run)
x |
A |
... |
Not used |
k |
The k value of the desired P matrix |
run |
The run number of the desired P matrix |
A single P matrix from the gt_admix
object
# Read example gt_admix object
admix_obj <-
readRDS(system.file("extdata", "anolis", "anole_adm_k3.rds",
package = "tidypopgen"
))
# Extract a P matrix
get_p_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.