calc_nei {amadeus}R Documentation

Calculate road emissions covariates

Description

Calculate road emissions covariates

Usage

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

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

logical(1). Should the function return a SpatVector? Default is FALSE. The coordinate reference system of the SpatVector is that of from.

...

Placeholders.

Value

a data.frame or SpatVector object

Author(s)

Insang Song, Ranadeep Daw

See Also

process_nei

Examples

## 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)
calc_nei(
  from = nei, # derived from process_nei example
  locs = loc,
  locs_id = "id"
)

## End(Not run)

[Package amadeus version 1.0.7 Index]