assignColDataColumn: assignColDataColumn Assign a new column directly to the...

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

assignColDataColumn

Assign a new column directly to the colData slot of a SummarizedExperiment.

Usage

1
assignColDataColumn(SE, colname, values)

Arguments

SE

A SummarizedExperiment object to assign colData columns to

colname

The name of the column to assign values to.

values

The values to assign to the col

Value

The SE object with the new column in the objects colData slot.

Examples

1
2
SE <- SummarizedExperiment(matrix(rnorm(100), 10, 10))
updatedSE <- assignColDataColumn(SE, 'test', rep(1, 10))

bhklab/PanCuRx documentation built on Dec. 30, 2021, 4:59 p.m.