get_marker_covar {cape} | R Documentation |
Get genotype or covariate values
Description
In some cape results plotting functions either marker genotypes or covariates can be used for plotting effects on traits. However markers and covariates are stored in different places so it can be annoying to retrieve their values.
Usage
get_marker_covar(data_obj, geno_obj, marker_covar_names)
Arguments
data_obj |
A |
geno_obj |
A genotype object |
marker_covar_names |
A vector of strings which can contain marker names with alleles appended or covariate names. |
Details
This function looks both in the genotype matrix and in covariate tables to find those values.
Value
This function returns a matrix with individuals in rows and markers/covariates in columns.
[Package cape version 3.1.2 Index]