| snames {autonomics} | R Documentation |
Get/Set sample names
snames(object) ## S4 method for signature 'SummarizedExperiment' snames(object) snames(object) <- value ## S4 replacement method for signature 'SummarizedExperiment,character' snames(object) <- value
object |
SummarizedExperiment |
value |
string vector with sample names |
sample names vector (get) or updated eSet (set)
require(magrittr)
file <- download_data('billing16.proteingroups.txt')
object <- read_proteingroups(file, plot=FALSE)
head(snames(object))
head(snames(object) %<>% paste0('SAMPLE_', .))