Closed ccsarapas closed 1 month ago
Thanks for this @ccsarapas. I hope to spend a little time on this package later this week and should be able to address this.
Took a peak at this, and the issue was as @ccsarapas guessed -- the internal states_id_table
has all lowercase values, so the lookup in state_to_fips
failed when checking against state
instead of state_chr
. It should be working a bit more smoothly now.
@bucketteOfIvy thanks for the fix! Looking at the code it makes sense to me. Closing the ticket now.
This causes failures in
county_to_fips()
andload_oeps()
when a name or abbreviation is passed tostate
.I think the issue might be that
relevant_state <- state == states_id_table$NAME
andrelevant_state <- state == states_id_table$ABBR
should usestate_chr
(lowercase) rather thanstate
(original passed by user).