Learn R Programming

chronosphere (version 0.3.1)

names,RasterArray-method: Names of one-dimensional RasterArray or SpArray objects.

Description

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

Usage

# S4 method for RasterArray
names(x)

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

Arguments

x

RasterArray or SpArray object.

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(clim)
names(clim)
# }

Run the code above in your browser using DataLab