rast_to_df | R Documentation |
Assumes that the name of the raster layer is the name of the variable if static is true, otherwise, the user must supply the correct variable name. If static is false, the name of the raster layer is assumed to be the time variable.
rast_to_df(rast, static = TRUE, varname = NULL)
rast |
SpatRaster |
static |
True if no temporal dimension, False else. |
varname |
The variable name, only required if static is False. |
data.frame
ne <- gen_naturalearth_cover()
rast_to_df(ne)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.