powered by
RasterArray
SpatialArray
Get or set the dimnames of multidimensional RasterArray or SpatialArray objects
# S4 method for XArray dimnames(x)# S4 method for XArray dimnames(x) <- value
# S4 method for XArray dimnames(x) <- value
A list of character vectors or NULL.
list
character
NULL
RasterArray or SpatialArray object.
character vector.
data(dems) dimnames(dems) data(coasts) dimnames(coasts) dimnames(coasts)[[2]] <- c("first", "second")
Run the code above in your browser using DataLab