colnames<-,TimeSeriesExperiment-method {TimeSeriesExperiment}R Documentation

Row and column name getters and setters for TimeSeriesExperiment object.

Description

colnames(), rownames() can be used to reset the dimensions, column and row names respectively. The data will be updated across all slots of TimeSeriesExperiment.

Usage

## S4 replacement method for signature 'TimeSeriesExperiment'
colnames(x) <- value

## S4 replacement method for signature 'TimeSeriesExperiment'
rownames(x) <- value

Arguments

x

a TimeSeriesExperiment object.

value

a character vector or a list of two character vectors with new dimension names.

Details

Setting colnames() automatically updates information in dimensionReduction slot.

Value

a character vector

Examples

data("endoderm_small")
head(colnames(endoderm_small))
colnames(endoderm_small) <- paste0("Smp", 1:ncol(endoderm_small))
head(colnames(endoderm_small))


[Package TimeSeriesExperiment version 1.11.1 Index]