names: Names of one-dimensional 'RasterArray', 'SpatialStack' or...

Description Usage Arguments Value Examples

Description

Get or set the names of one-dimensional RasterArray or SpatialArray objects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S4 method for signature 'XArray'
names(x)

## S4 replacement method for signature 'XArray'
names(x) <- value

## S4 method for signature 'SpatialStack'
names(x)

## S4 replacement method for signature 'SpatialStack'
names(x) <- value

Arguments

x

RasterArray, SpatialStack or SpatialArray object.

value

character vector.

Value

A character vector of names or NULL.

Examples

1
2
3
4
5
6
data(dems)
names(dems)
names(dems)[4] <- "weirdo"
# NULL
data(coasts)
names(coasts)

chronosphere documentation built on April 19, 2021, 1:07 a.m.