Rdocumentation
powered by
Learn R Programming
cape (version 2.0.2)
get.covar: Get information about covariates
Description
This function returns information about all covariates that originated from either genotype or phenotype.
Usage
get.covar(data.obj, covar = NULL)
Arguments
data.obj
The object in which all results are stored. See
read.population
.
covar
A character string indicating which covariates to return information about.
Value
This function returns a list with the following elements:
covar.names: A vector of covariate names
covar.type: A vector containing "p" and "g" values to indicate whether each covariate originate as a genetic marker or a phenotype.
covar.loc: A numeric vector indicating the chromosomal coordinate of each covariate. Phenotypic covariates are given dummy coordinates of 1:n.
covar.table: A matrix giving the values of each covariate for each individual.