Skip to contents

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

Arguments

x

RasterArray or SfArray object.

value

character vector.

Value

A list of character vectors or NULL.

Examples

ex <- rastex()
dimnames(ex)
#> NULL
data(paleocoastlines)
dimnames(paleocoastlines)
#> [[1]]
#> [1] "0"  "10" "20"
#> 
#> [[2]]
#> [1] "margin" "coast" 
#> 
dimnames(paleocoastlines)[[2]] <- c("first", "second")
names(dimnames(paleocoastlines)) <- c("age", "type")