1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
\name{pull.pheno}
\alias{pull.pheno}
\title{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{
\item{cross}{An object of class \code{cross}. See
\code{\link[qtl]{read.cross}} for details.}
\item{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{Karl W Broman, \email{kbroman@biostat.wisc.edu} }
\examples{
data(listeria)
pull.pheno(listeria, "sex")
}
\seealso{ \code{\link[qtl]{pull.geno}}, \code{\link[qtl]{pull.map}} }
\keyword{utilities}
|