cols2vmat | R Documentation |
Transform a dataframe carrying grid-oriented data into a list of grid vectors and a data matrix.
cols2vmat(d)
d |
A data.frame with 3 columns. The first two columns must be vectors of grid coordinates, and the final column contains the value at that grid coordinate. |
a list of length 3; the first 2 entries are vectors of the grid values in each direction, and the last entry is the 2 dimensional matrix of the data values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.