View source: R/get_area_crashes.R
get_area_crashes | R Documentation |
This function is deprecated because the functionality has been incorporated
into the improved mapmaryland::get_md_crash_data()
function which uses a similar set
of parameters.
Get vehicle crashes for selected area in Baltimore City.
get_area_crashes(
area,
start_year = 2020,
end_year = 2020,
geometry = FALSE,
trim = FALSE,
type = c("crash", "person", "vehicle")
)
area |
|
start_year |
earliest year of crash data to return. Default 2020. |
end_year |
latest year of crash data to return. If |
geometry |
If TRUE, return a sf object. Default FALSE. |
trim |
If TRUE, data trimmed to area with
|
type |
Data type to return. Options include c("crash", "person", "vehicle"). Data types correspond to different tables. If 'person', an age at crash column is added based on the accident date and date of birth columns (after removing suspected placeholder values). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.