Usage
## S3 method for class 'character':
stack(x, ..., bands=NULL, varname="", native=FALSE, RAT=TRUE, quick=FALSE)
## S3 method for class 'Raster':
stack(x, ..., layers=NULL)
## S3 method for class 'missing':
stack(x)
## S3 method for class 'list':
stack(x, bands=NULL, native=FALSE, RAT=TRUE, ...)
Arguments
x
filename (character), Raster* object, missing (to create an empty RasterStack), SpatialGrid*, SpatialPixels*, or list (of filenames and/or Raster* objects). If x
is a list, additional arguments ...
are ignored
bands
integer. which bands (layers) of the file should be used (default is all layers)
layers
integer (or character with layer names) indicating which layers of a RasterBrick should be used (default is all layers)
native
logical. If TRUE
native drivers are used instead of gdal drivers (where available, such as for BIL and Arc-ASCII files)
RAT
logical. If TRUE
a raster attribute table is created for files that have one
quick
logical. If TRUE
the extent and resolution of the objects are not compared. This speeds up the creation of the RasteStack but should be use with great caution. Only use this option when you are absolutely sure that all the data in all the fil
varname
character. To select the variable of interest in a NetCDF file (see raster
...
additional filenames or Raster* objects