StateOfCalifornia / CalCAT

California Communicable diseases Assessment Tool
MIT License
225 stars 101 forks source link

Update get_state_abbrv.R #8

Closed chasemc closed 4 years ago

chasemc commented 4 years ago

Moved from manually built dataframe of states and abbreviations to built-in R functions. Added internal checks.

Original warned but didn't fail when provided >1 state (but only gave back one abbreviation). Not sure if that was intended, this one provides the correct number of abbreviations as sates provided, but can be modified to only accept a single state name