View source: R/calculate_covariates.R
calculate_nei | R Documentation |
Calculate road emissions covariates
calculate_nei(from = NULL, locs = NULL, locs_id = "site_id", geom = FALSE, ...)
from |
SpatVector(1). Output of |
locs |
sf/SpatVector. Locations at NEI values are joined. |
locs_id |
character(1). Unique site identifier column name. Unused but kept for compatibility. |
geom |
FALSE/"sf"/"terra".. Should the function return with geometry?
Default is |
... |
Placeholders. |
a data.frame or SpatVector object
Insang Song, Ranadeep Daw
process_nei
## NOTE: Example is wrapped in `\dontrun{}` as function requires a large
## amount of data which is not included in the package.
## Not run:
loc <- data.frame(id = "001", lon = -78.90, lat = 35.97)
calculate_nei(
from = nei, # derived from process_nei example
locs = loc,
locs_id = "id"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.