Learn R Programming

chronosphere (version 0.3.1)

rownames,RasterArray-method: Row names of two-dimensional RasterArray or SpArray objects

Description

Get or set the row names of two-dimensional RasterArray or SpArray objects

Usage

# S4 method for RasterArray
rownames(x)

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

Arguments

x

RasterArray or SpArray object.

value

character vector.

Value

A character vector of row names or NULL.

Examples

Run this code
# NOT RUN {
data(clim)
rownames(clim)
rownames(clim) <- paste("year", rownames(clim))
# }

Run the code above in your browser using DataLab