addPheno: Adds additional phenotypes for a new trait

View source: R/addPheno.R

addPhenoR Documentation

Adds additional phenotypes for a new trait

Description

add phenotype columns to the data

Usage

addPheno(cnr, df, sort = FALSE, ...)

Arguments

cnr

a cnr bundle

df

a data frame with new Y traits

sort

logical, sort data.frame after merge merge

...

additional arguments by merge

Value

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

Examples


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 March 23, 2024, 5:15 a.m.