addPheno: Adds additional phenotypes for a new trait

Description Usage Arguments Value Examples

View source: R/addPheno.R

Description

add phenotype columns to the data

Usage

1

Arguments

cnr

a cnr bundle

df

a data frame with new Y traits

...

additional arguments by merge

Value

Returns a CNR object with added columns to Y, e.g. additional cell phenotypes, histologies, etc.

Examples

1
2
3
4
5
6
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")

SingerLab/gac documentation built on July 22, 2021, 3:27 a.m.