Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pull.pheno

Pull out phenotype data from a cross


Description

Pull out selected phenotype data from a cross object, as a data frame or vector.

Usage

pull.pheno(cross, pheno.col)

Arguments

cross

An object of class cross. See read.cross for details.

pheno.col

A vector specifying which phenotypes to keep or discard. This may be a logical vector, a numeric vector, or a vector of character strings (for the phenotype names). If missing, the entire set of phenotypes is output.

Value

A data.frame with columns specifying phenotypes and rows specifying individuals. If there is just one phenotype, a vector (rather than a data.frame) is returned.

Author(s)

Karl W Broman, broman@wisc.edu

See Also

Examples

data(listeria)
pull.pheno(listeria, "sex")

qtl

Tools for Analyzing QTL Experiments

v1.48-1
GPL-3
Authors
Karl W Broman <broman@wisc.edu> and Hao Wu, with ideas from Gary Churchill and Saunak Sen and contributions from Danny Arends, Robert Corty, Timothee Flutre, Ritsert Jansen, Pjotr Prins, Lars Ronnegard, Rohan Shah, Laura Shannon, Quoc Tran, Aaron Wolen, Brian Yandell, and R Core Team
Initial release
2021-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.