Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

names

Names of one-dimensional RasterArray, SpatialStack or SpatialArray objects.


Description

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

Usage

## 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

data(dems)
names(dems)
names(dems)[4] <- "weirdo"
# NULL
data(coasts)
names(coasts)

chronosphere

Earth System History Variables

v0.4.1
CC BY 4.0
Authors
Adam T. Kocsis, Nussaibah B. Raja
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.