dimLabels: Access variables used for feature and sample identifiers

dimLabels,NanoStringExperiment-methodR Documentation

Access variables used for feature and sample identifiers

Description

Shows variables used for rownames in rowData and colData.

Replaces rownames in rowData and colData with specified variable columns.

Usage

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

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

Arguments

object

NanoStringExperiment object

value

list of key headers to use for sample and feature names

Value

list of variables used for dimension labels

NanoStringExperiment object

Examples

data(exampleNSEData)
dimLabels(testExp)

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


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