Description Usage Arguments Details
View source: R/prep_geom_vars.R
Creates a data.frame with covariates from rasters.
1 | prep_geom_vars(vars_paths, geom, crs = "lcc_mex")
|
vars_paths |
paths to rasters with covariates to consider, must include raster with id's (name of layer should contain "id") |
geom |
region sf, polygon(s) that determine analysis area |
crs |
string specifying projection (proj4string) passed to sf::st_transform, defaults to lcc (Mex) |
Reads tif files of discretized variables and id variable, cuts rasters with polygons in a polygon simple feature and returns a data.frame with the categorical variables, coordinates and id variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.