Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

colnames

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 signature 'XArray'
colnames(x)

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

Arguments

x

RasterArray or SpatialArray object.

value

character vector.

Value

A character vector of column names or NULL.

Examples

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

chronosphere

Earth System History Variables

v0.4.1
CC BY 4.0
Authors
Adam T. Kocsis, Nussaibah B. Raja
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.