stmra_stack_to_matrix: Convert a raster stack to a data matrix

View source: R/MRA_spacetime.R

stmra_stack_to_matrixR Documentation

Convert a raster stack to a data matrix

Description

Convert a raster stack to a data matrix

Usage

stmra_stack_to_matrix(s)

Arguments

s

A RasterStack or RasterBrick object where layer dimension corresponds to time

Value

A data.frame with rows representing pixels and columns for coordinates ("x","y","t") and data values ("values")

Note

This functions assumes equidistant images, i.e. a constant temporal gap between consecutive layers


appelmar/stmra documentation built on April 12, 2022, 7:22 p.m.