Skip to content

Commit

Permalink
less years in timeline vignette too
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-brokamp committed Mar 19, 2024
1 parent c610c14 commit b399006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/timeline-example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ library(appc)
library(dplyr, warn.conflicts = FALSE)
```

This example details how to use the appc package to add air pollution exposure estimates for exact locations and time periods defined by geocoded coordinates and a "key" date. For this example workflow, we will simulate 20 random locations in Wayne County, Michigan and dates of birth between 2019 and 2022, but in actuality this can be any set of geocoded `lat` and `lon` columns with corresponding dates.
This example details how to use the appc package to add air pollution exposure estimates for exact locations and time periods defined by geocoded coordinates and a "key" date. For this example workflow, we will simulate 20 random locations in Wayne County, Michigan and dates of birth between 2022 and 2023, but in actuality this can be any set of geocoded `lat` and `lon` columns with corresponding dates.

```{r}
#| warnings: false
Expand All @@ -32,7 +32,7 @@ d <-
sf::st_coordinates() |>
tibble::as_tibble() |>
rename(lat = Y, lon = X) |>
mutate(dob = sample(seq(as.Date("2019-01-01"), as.Date("2022-12-31"), by = 1), size = 20))
mutate(dob = sample(seq(as.Date("2022-01-01"), as.Date("2023-12-31"), by = 1), size = 20))
d
```
Expand Down

0 comments on commit b399006

Please sign in to comment.