sj-io/tidychas

Fix method for calling geography data

Opened this issue · 0 comments

No Issue: 1. get_chas("county", state = "47") then 2. get_chas("county", state = "47", county = "157")

Running the functions in this order returns:

  1. Data for all counties in Tennessee
  2. Data for only Shelby County, Tennessee

Issue: 1. get_chas("county", state = "47", county = "157") then 2. get_chas("county", state = "47")

In this order returns:

  1. Data for only Shelby County
  2. Data for only Shelby County

Matching with cache data is too simple and doesn't know if a match is only a partial match. Need a reference states and counties? Maybe include with state abbreviations and names for get_chas calls.