add.phenos {qtlhot} | R Documentation |
Add phenotypes to cross object.
Description
Add phenotypes to cross object by checking index.
Usage
add.phenos(cross, newdata = NULL, index = NULL)
Arguments
cross |
object of class |
newdata |
data frame with row names matching values of phenotype
identified by |
index |
character string name of phenotype in object
|
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, byandell@wisc.edu
See Also
Examples
## Not run:
data(hyper)
x <- data.frame(x = rnorm(nind(hyper)))
hyperx <- add.phenos(hyper, x)
## End(Not run)
[Package qtlhot version 1.0.4 Index]