Learn R Programming

cape (version 2.0.2)

delete.pheno: Remove phenotypes from the phenotype matrix

Description

This function deletes an unwanted phenotype or phenotypes from the phenotype matrix.

Usage

delete.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 or column names designating which phenotype or phenotypes should be deleted.

Value

This function returns the data object with the specified phenotypes removed.

Examples

Run this code
data(obesity.cross)
str(obesity.cross)
obesity.cross <- delete.pheno(obesity.cross, "insulin")
str(obesity.cross)

Run the code above in your browser using DataLab