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/PDATK documentation built on Dec. 27, 2021, 7:46 a.m.