Learn R Programming

via (version 0.2.0)

dimnames,VirtualArray-method: Names of a multidimensional 'VirtualArray'-derived class object.

Description

Get or set the dimnames of multidimensional VirtualArray-derived class object.

Usage

# S4 method for VirtualArray
dimnames(x)

# S4 method for VirtualArray dimnames(x) <- value

Value

A list of character vectors or NULL.

Arguments

x

RasterArray or SfArray object.

value

character vector.

Examples

Run this code
ex <- rastex()
dimnames(ex)
data(paleocoastlines)
dimnames(paleocoastlines)
dimnames(paleocoastlines)[[2]] <- c("first", "second")
names(dimnames(paleocoastlines)) <- c("age", "type")

Run the code above in your browser using DataLab