Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bind-methods

Combine Raster and Vector Spatial data to RasterArray or SpatialArray objects by rows or columns


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

## 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

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

Earth System History Variables

v0.4.1
CC BY 4.0
Authors
Adam T. Kocsis, Nussaibah B. Raja
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.