Learn R Programming

cape (version 2.0.2)

select.pheno: Select phenotypes for analysis

Description

This function is used to pare down a matrix of phenotypes to only those that will be included in the analysis.

Usage

select.pheno(data.obj, phenotypes)

Arguments

data.obj
The object in which all results are stored. See read.population.
phenotypes
A vector of either column numbers of the desired phenotypes, or character strings that uniquely identify the columns containing the desired phenotypes.

Value

This function returns the data object with a phenotype matrix that contains only the specified phenotypes.

Examples

Run this code
data(obesity.cross)
obesity.cross <- select.pheno(obesity.cross, c("glucose", "body_weight"))

Run the code above in your browser using DataLab