make_spatial_grid.Rd
Create a Spatial Sampling Grid
make_spatial_grid(
dir.out,
overwrite = TRUE,
countries = c("US", "CA"),
states = NULL,
crs.target = 4326,
hexagonal = TRUE,
grid.size = 1,
conterminousUSA = TRUE,
...
)
Where to save the resulting grid (as .RDS).
TRUE will overwrite existing grid.rds
in dir.out
Vector of countries. Defaults to a base map of USA and CAN, unless arg states
is provided. If arg states
is provided, this argument will be ignored. Must be specified using ISO-A2
Vector of states to which the spatial grid will be clipped. Must be specified using ISO 3166-2 (see https://en.wikipedia.org/wiki/ISO_3166-2)
Target CRS number for spatial grid.
logical if TRUE will produce a spatial grid with hexagonal, as opposed to rectangular, cells
numeric size (relative to units defining crs.target) of resulting cell. E.g., if crs.target==4326 a value of gridsize=1.0 equals ~111.11km
logical if TRUE will remove Hawaii and Alaska. Default TRUE to reduce computation times and extent of sptaial grid.
Additional arguments