geomarker-io / appc

Daily, high resolution, near real-time, model-based ambient air pollution exposure assessments in R
http://geomarker.io/appc/
Other
0 stars 0 forks source link

Use vignette for example geomarker assessment #25

Closed cole-brokamp closed 8 months ago

cole-brokamp commented 9 months ago

Start from addresses? or from lat/lon?

Randomly choose dates? Or show example of start_date and end_date being used to make a daily time series? (or do this as an s3 object)

Show conversion to s2 cells and how to use tibble to add new geomarker column or columns

Show how to extract columns from geomarker functions that return tibbles

Show how to nest / unnest dates to get tabular data for further use

cole-brokamp commented 8 months ago
purrr::map2(
      as.Date(x$start_date), as.Date(x$end_date),
      \(.s, .e) seq(from = .s, to = .e, by = 1)
    )

as an example of how to convert tibble with start dates and end dates for each s2 cell location

cole-brokamp commented 8 months ago

this is included in readme.rmd example for now. maybe more detailed vignette on example geomarker covariates? e.g., temp, precip, humidity