Description Usage Arguments Value References Examples
View source: R/ecat_and_scaling_functions.R
add_scaled_ecat()
is a wrapper function that estimates ECAT exposures
at provided locations by calling calculate_ecat()
, then temporally scales those
estimates using scaling factors computed by calling calculate_scaling_factors()
.
This function is particularly useful for calculating exposures at the same locations on
different dates.
1 | add_scaled_ecat(locations)
|
locations |
Data.frame with columns 'id', 'lat','lon', 'start_date', and 'end_date' at minimum. |
A numeric vector of ECAT estimates (ug/m3).
Ryan, P.H., G.K. LeMasters, P. Biswas, L. Levin, S. Hu, M. Lindsey, D.I. Bernstein, J. Lockey, M. Villareal, G.K. Khurana Hershey, and S.A. Grinshpun. 2007. "A Comparison of Proximity and Land Use Regression Traffic Exposure Models and Wheezing in Infants." Environmental Health Perspectives 115(2): 278-284. https://doi.org/10.1289/ehp.9480
1 2 3 4 5 6 7 | my_data <- data.frame(id = rep(1,3),
lat = c(39.19674, 39.19674, 39.19674),
lon = c(-84.58260, -84.58260, -84.58260),
start_date = as.Date(c("2010-01-08", "2012-06-08", "2015-04-09")),
end_date = as.Date(c("2010-02-08", "2012-07-08", "2015-05-09")))
ecat_scaled <- add_scaled_ecat(my_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.