elipousson / crashapi

💥🚙💥 R package to get Fatality Analysis Reporting System (FARS) data with the FARS API
https://elipousson.github.io/crashapi/
Other
15 stars 0 forks source link

Add lookup tables for FARS variables #4

Open elipousson opened 1 year ago

elipousson commented 1 year ago

get_fars_crash_persons() is not working in large part because it does not have a lookup table in place for seat position. While the recoding of numeric values as descriptive variables is mostly handled by the API, the data available via get_fars_zip() would be much easier to work with if lookup tables were provided.

The getfars repository has already assembled a lot of this information into plain text files and I think some of the information may be available in a similar XML format used to generate the mmucc_codes reference data. The issue could be very complex to address comprehensively due to the changing variable definitions/coding conventions over time but something would be better than nothing.