Learn R Programming

chronosphere (version 0.4.1)

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

Description

Get or set the row names of two-dimensional RasterArray or SpatialArrayobjects

Usage

# S4 method for XArray
rownames(x)

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

Value

A character vector of row names or NULL.

Arguments

x

RasterArray or SpatialArray object.

value

character vector.

Examples

Run this code
data(coasts)
rownames(coasts)
rownames(coasts) <- paste(rownames(coasts), "Ma")

Run the code above in your browser using DataLab