tbl_xyz2mat | R Documentation |
convert xyz tbl to matrix
tbl_xyz2mat(tbl, x = 1, y = 2, z = 3)
tbl |
A |
x |
(optional) The x-axis coordinates column number, default is |
y |
(optional) The y-axis coordinates column number, default is |
z |
(optional) The z (attribute) coordinates column number, default is |
A list
.
A matrix with attribute information.
A matrix with the x-axis coordinates.
A matrix with the y-axis coordinates.
set.seed(42)
lon = rep(1:3,each = 3)
lat = rep(1:3,times = 3)
zattr = rnorm(9, mean = 10, sd = 1)
demodf = data.frame(x = lon, y = lat, z = zattr)
demodf
tbl_xyz2mat(demodf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.