Learn R Programming

qtl (version 1.39-5)

find.pheno: Find column number for a particular phenotype

Description

Find the column number corresponding to a particular phenotype name.

Usage

find.pheno(cross, pheno)

Arguments

cross
An object of class cross. See read.cross for details.
pheno
Vector of phenotype names (as character strings).

Value

A vector of numbers, corresponding to the column numbers of the phenotype in the input cross with the specified names.

Examples

Run this code
data(fake.bc)
find.pheno(fake.bc, "sex")

Run the code above in your browser using DataLab