Learn R Programming

chronosphere (version 0.3.1)

colnames,RasterArray-method: Column names of two-dimensional RasterArray or SpArray

Description

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

Usage

# S4 method for RasterArray
colnames(x)

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

Arguments

x

RasterArray or SpArray object.

value

character vector.

Value

A character vector of column names or NULL.

Examples

Run this code
# NOT RUN {
data(clim)
colnames(clim)
colnames(clim) <- c("a", "b")
# }

Run the code above in your browser using DataLab