get_crss_zip() functionCrashAPI now has data from 2010 to 2020. get_fars_year() is also updated to support multiple years and to include a state parameter which makes it much easier to use.
get_fars_year()sfext::df_to_sfhttr2 package + read_crashapi() for data access (except for zip)get_fars_crash_persons() functiontidy_crashes() to format_crashes()get_fars_crash_details() to get_fars_cases()get_fars_crashes() to supported appending detailed case informationfars_vars_labels with names and labels derived from current analytical manualget_fars() function that uses an api parameter to call different APIslookup_fips() functionget_fars_crash_vehicles to support downloading crash data by vehicle make, model, and/or body typeget_fars_year was not using the correct query URL if download = TRUEmake_query() helper function to read_api()validate_year() helper function to work with {checkmate} packageget_fars_zip added to provide alternate (non-API) method for downloading zipped CSV or SAS data filesget_fars_crash_details updated to return data frame w/o list columnsget_fars_crash_details updated to optionally return vehicle or crash events data framesDESCRIPTIONcounty_to_fips() to support partial county names, e.g. "Adams" instead of "Adams County" and avoiding matching multiple counties (closes #1)get_fars_crash_details() to return sf objects using geometry parametermake_query)get_fars())get_fars_vars())fars_terms data with terms and definitions from National Highway Traffic Safety Administration (NHTSA) websiteNEWS.md file to track changes to the package.