| attach_historic_data | R Documentation | 
You can then use dplyr verbs such as filter,
select, summarize, etc. For basic
importing of historic data based on ems_id, date, and parameter,
you can use the function read_historic_data
attach_historic_data(con = NULL)
| con | DBI connection object, most likely created by  | 
A dplyr connection to the duckdb database. See tbl for more.
## Not run: 
library(dplyr)
con <- connect_historic_db()
hist_tbl <- attach_historic_data(con)
result <- hist_tbl %>%
 group_by(EMS_ID) %>%
 summarise(max_date = max(COLLECTION_START))
collect(result)
disconnect_historic_db(con)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.