Learn R Programming

chronosphere (version 0.4.0)

dimnames,XArray-method: Names of multidimensional RasterArray or SpatialArray objects.

Description

Get or set the dimnames of multidimensional RasterArray or SpatialArray objects

Usage

# S4 method for XArray
dimnames(x)

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

Arguments

value

character vector.

Value

A list of character vectors or NULL.

Examples

Run this code
# NOT RUN {
data(dems)
dimnames(dems)
data(coasts)
dimnames(coasts)
dimnames(coasts)[[2]] <- c("first", "second")
# }

Run the code above in your browser using DataLab