bind-methods: Combine Raster and Vector Spatial data to 'RasterArray' or...

Description Usage Arguments Value Examples

Description

The function takes a sequence of RasterLayer or RasterArray class objects and combines them to two dimensional RasterArrays, Alternatively, the function can be used to combine vector Spatial* data to SpatialArrays. Named objects will be forced together based on names, colnames or rownames attributes, via insertion of NAs.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'RasterArray'
cbind(...)

## S3 method for class 'RasterArray'
rbind(...)

## S3 method for class 'SpatialArray'
cbind(...)

## S3 method for class 'SpatialArray'
rbind(...)

Arguments

...

RasterLayer or RasterArray class objects to be combined.

Value

A RasterArray or SpatialArray class object.

Examples

1
2
3
4
5
6
7
data(dems)
# create matrices out of vectors
colb <- cbind(dems, dems)
rowb <- rbind(dems, dems)
# automatic name matching
dems2 <- dems[c(1:4, 6:10)]
matched <- suppressWarnings(cbind(dems, dems2))

chronosphere documentation built on April 19, 2021, 1:07 a.m.