Learn R Programming

chronosphere (version 0.4.1)

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

Value

A character vector of names or NULL.

Arguments

x

RasterArray, SpatialStack or SpatialArray object.

value

character vector.

Examples

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

Run the code above in your browser using DataLab