Learn R Programming

chronosphere (version 0.4.1)

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

Description

Get or set the column names of two-dimensional codeRasterArray or SpatialArray objects

Usage

# S4 method for XArray
colnames(x)

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

Value

A character vector of column names or NULL.

Arguments

x

RasterArray or SpatialArray object.

value

character vector.

Examples

Run this code
data(coasts)
colnames(coasts)
colnames(coasts) <- c("a", "b")

Run the code above in your browser using DataLab