Learn R Programming

chronosphere (version 0.4.1)

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

Value

A list of character vectors or NULL.

Arguments

x

RasterArray or SpatialArray object.

value

character vector.

Examples

Run this code
data(dems)
dimnames(dems)
data(coasts)
dimnames(coasts)
dimnames(coasts)[[2]] <- c("first", "second")

Run the code above in your browser using DataLab