Learn R Programming

chronosphere (version 0.4.0)

names,XArray-method: 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 XArray
names(x)

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

# S4 method for SpatialStack names(x)

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

Arguments

value

character vector.

Value

A character vector of names or NULL.

Examples

Run this code
# NOT RUN {
data(dems)
names(dems)
names(dems)[4] <- "weirdo"
# NULL
data(coasts)
names(coasts)
# }

Run the code above in your browser using DataLab