Description Usage Arguments Value See Also Examples
spatiallong
transforms a set of two independent variables in vectors and a
dependent variable in a wide matrix to a long matrix that combines the information.
The result is exported as a data.frame.
1 | spatiallong(x, y, z)
|
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 |
matrix of dependent variable. e.g. matrix with z axis spatial points |
data.frame with three columns x, y and z
Other transfuncs: spatialwide
1 2 3 4 5 6 7 | x <- c(1, 1, 1, 2, 2, 2, 3, 3, 4)
y <- c(1, 2, 3, 1, 2, 3, 1, 2, 3)
z <- c(3, 4, 2, 3, NA, 5, 6, 3, 1)
sw <- spatialwide(x, y, z, digits = 3)
spatiallong(sw$x, sw$y, sw$z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.