add.phenos: Add phenotypes to cross object.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/add.phenos.R

Description

Add phenotypes to cross object by checking index.

Usage

1
add.phenos(cross, newdata = NULL, index = NULL)

Arguments

cross

object of class cross; see read.cross

newdata

data frame with row names matching values of phenotype identified by index for object cross

index

character string name of phenotype in object cross; if NULL, then newdata must be of same size as cross with phenotypes in order

Details

The name index must be a phenotype in the cross object. The row names of newdata are matched with values of index.

Value

object of class cross with added phenotypes

Author(s)

Brian S. Yandell, [email protected]

See Also

read.cross

Examples

1
2
3
4
5
6
## Not run: 
data(hyper)
x <- data.frame(x = rnorm(nind(hyper)))
hyperx <- add.phenos(hyper, x)

## End(Not run)

qtlhot documentation built on April 6, 2018, 1:05 a.m.