powered by
RasterArray
SpatialArray
Get or set the column names of two-dimensional codeRasterArray or SpatialArray objects
# S4 method for XArray colnames(x)# S4 method for XArray colnames(x) <- value
# S4 method for XArray colnames(x) <- value
A character vector of column names or NULL.
character
NULL
RasterArray or SpatialArray object.
character vector.
data(coasts) colnames(coasts) colnames(coasts) <- c("a", "b")
Run the code above in your browser using DataLab