assignColDataColumn {PDATK} | R Documentation |
assignColDataColumn
Assign a new column directly to the colData slot of a SummarizedExperiment.
assignColDataColumn(SE, colname, values)
SE |
A |
colname |
The name of the column to assign |
values |
The values to assign to the col |
The SE
object with the new column in the objects colData
slot.
SE <- SummarizedExperiment(matrix(rnorm(100), 10, 10)) updatedSE <- assignColDataColumn(SE, 'test', rep(1, 10))