get_covar: Get covariate information

Description Usage Arguments Value Examples

View source: R/get_covar.R

Description

This function returns information about the covariates specified for the cape run.

Usage

1
get_covar(data_obj)

Arguments

data_obj

a Cape object

Value

Returns a list with the following elements: covar_names: a character vector holding the names of the covariates covar_type: a character vector indicating whether each covariate derived from the phenotype matrix ("p") or the genotype matrix ("g") covar_loc: A numeric vector indicating the locations of each covariate covar_table: A matrix holding the individual values for each covariate.

Examples

1
2
3
4
## Not run: 
covar_info <- get_covar(data_obj)

## End(Not run)

cape documentation built on Feb. 10, 2021, 5:06 p.m.