stackMatrix: Turn a data matrix into a raster stack.

Description Usage Arguments Value

View source: R/spatial.R

Description

Create a raster stack from a matrix, where each matrix row is a pixel and each column is a layer.

Usage

1
stackMatrix(data, template)

Arguments

data

A matrix.

template

A raster layer to be used as spatial template; dims must match data.

Value

A raster stack.


matthewkling/ecoclim documentation built on May 21, 2019, 1:04 p.m.