assignColDataColumn {PDATK} | R Documentation

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

### Description

assignColDataColumn

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

### Usage

    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

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

[Package PDATK version 1.2.0 Index]