Learn R Programming

chronosphere (version 0.3.1)

cbind.RasterArray: Combine RasterLayers or RasterArrays by rows or columns

Description

The function takes a sequence of RasterLayer or RasterArray class objects and combines them to two dimensional RasterArrays... Named objects will be forced together based on names, colnames or rownames attributes, via insertion of NAs.

Usage

# S3 method for RasterArray
cbind(...)

# S3 method for RasterArray rbind(...)

Arguments

...

RasterLayer or RasterArray class objects to be combined.

Value

A RasterArray class object.

Examples

Run this code
# NOT RUN {
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))
# }

Run the code above in your browser using DataLab