sampleNames: Access sample identifiers

sampleNames,NanoStringExperiment-methodR Documentation

Access sample identifiers

Description

Shows variables used for rownames in colData.

Replace variables used for rownames in colData.

Usage

## S4 method for signature 'NanoStringExperiment'
sampleNames(object)

## S4 replacement method for signature 'NanoStringExperiment,ANY'
sampleNames(object) <- value

Arguments

object

NanoStringExperiment object

value

list sample names

Value

list of string sample (column) identifiers

NanoStringExperiment object

Examples

data(exampleNSEData)
sampleNames(testExp)

data(exampleNSEData)
colData(testExp)[["testNames"]] <- paste0(dimnames(testExp)[[2]], "a")
sampleNames(testExp) <- colData(testExp)[["testNames"]]


Nanostring-Biostats/NanoStringExperiment documentation built on April 28, 2022, 6:24 a.m.