VeloxRaster_drop: Delete a raster band from a VeloxRaster

Description Arguments Value Examples

Description

Delete a raster band from a VeloxRaster

Arguments

bands

Numeric vector containing IDs of bands to be dropped.

Value

Void.

Examples

1
2
3
4
5
6
7
## Make VeloxRaster with 2 bands
mat1 <- matrix(1:100, 10, 10)
mat2 <- matrix(100:1, 10, 10)
vx <- velox(list(mat1, mat2), extent=c(0,1,0,1), res=c(0.1,0.1),
      crs="+proj=longlat +datum=WGS84 +no_defs")
## Delete band 2
vx$drop(bands=2)

velox documentation built on May 2, 2019, 6:01 a.m.