names

0th

Percentile

Names of raster layers

Get or set the names of the layers of a Raster* object

Keywords
spatial
Usage
# S4 method for Raster
names(x)

# S4 method for Raster names(x)<-value

# S4 method for Raster labels(object)

Arguments
x

Raster* object

object

Raster* object

value

character (vector)

Value

Character

See Also

nlayers, bands

Aliases
  • labels,Raster-method
  • names
  • names<-
  • names,Raster-method
  • names,RasterStack-method
  • names<-,Raster-method
Examples
library(raster) # NOT RUN { r <- raster(ncols=5, nrows=5) r[] <- 1:ncell(r) s <- stack(r, r, r) nlayers(s) names(s) names(s) <- c('a', 'b', 'c') names(s)[2] <- 'hello world' names(s) s labels(s) # }
Documentation reproduced from package raster, version 2.6-7, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.