add.phenos {qtlhot} | R Documentation |
Add phenotypes to cross object by checking index.
add.phenos(cross, newdata = NULL, index = NULL)
cross |
object of class |
newdata |
data frame with row names matching values of phenotype
identified by |
index |
character string name of phenotype in object
|
The name index
must be a phenotype in the cross
object. The row names of newdata
are matched with values of index
.
object of class cross
with added phenotypes
Brian S. Yandell, byandell@wisc.edu
## Not run:
data(hyper)
x <- data.frame(x = rnorm(nind(hyper)))
hyperx <- add.phenos(hyper, x)
## End(Not run)