spatialwide: Transformation of numeric matrices from long to wide format
Description
Transforms a set of two independent and one dependent variables in vectors from a long
to a wide format and exports this result as a list
Usage
spatialwide(x, y, z, digits)
Arguments
x
vector of first independent variable. e.g. vector with x-axis spatial points
y
vector of second independent variable. e.g. vector with y-axis spatial points
z
vector of dependent variable. e.g. vector with z-axis spatial points
digits
integer indicating the number of decimal places to be used for rounding
the dependent variables x and y.
Value
List with three elements:$x: vector with ascendingly sorted, unique values of the first independent variable x$y: vector with ascendingly sorted, unique values of the second independent variable y$z: matrix with the values of z for the defined combinations of x (columns) and
y (rows)