set_col_data: Sets column data from an se

View source: R/accessors.R

set_col_dataR Documentation

Sets column data from an se

Description

As this does not require inplace operations, this can typically be used in a pipe

Usage

set_col_data(se, coldata)

Arguments

se

SummarizedExperiment

coldata

data frame or tibble containing the coldata

Value

A SummarizedExperiment with the new coldata set

Examples

data(seq_se)
new_cd <- get_col_data(seq_se) %>% 
tidyr::unite(time_treatment, c(time, treatment))
se_new_coldata <- set_col_data(seq_se, new_cd)

martijnvanattekum/cleanse documentation built on Nov. 20, 2023, 8:28 p.m.