addPheno | R Documentation |
add phenotype columns to the data
addPheno(cnr, df, sort = FALSE, ...)
cnr |
a cnr bundle |
df |
a data frame with new Y traits |
sort |
logical, sort data.frame after merge |
... |
additional arguments by merge |
Returns a CNR object with added columns to Y, e.g. additional cell phenotypes, histologies, etc.
data(cnr) rand3 <- data.frame(cellID = cnr$Y$cellID, rand3 = rnorm(nrow(cnr$Y), mean = 2, sd = 1)) cnr <- addPheno(cnr, df = rand3, by = "cellID")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.