Learn R Programming

amadeus (version 1.2.3)

calculate_nei: Calculate road emissions covariates

Description

Calculate road emissions covariates

Usage

calculate_nei(from = NULL, locs = NULL, locs_id = "site_id", geom = FALSE, ...)

Value

a data.frame or SpatVector object

Arguments

from

SpatVector(1). Output of process_nei().

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 FALSE, options with geometry are "sf" or "terra". The coordinate reference system of the sf or SpatVector is that of from.

...

Placeholders.

Author

Insang Song, Ranadeep Daw

See Also

process_nei

Examples

Run this code
## NOTE: Example is wrapped in `\dontrun{}` as function requires a large
##       amount of data which is not included in the package.
if (FALSE) {
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"
)
}

Run the code above in your browser using DataLab