Learn R Programming

chronosphere (version 0.3.1)

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

Description

Get or set the dimnames of multidimensional RasterArray or SpArray objects

Usage

# S4 method for RasterArray
dimnames(x)

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

Arguments

x

RasterArray or SpArray object.

value

character vector.

Value

A list of character vectors or NULL.

Examples

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

Run the code above in your browser using DataLab