ccao-data / ptaxsim

R package for estimating Cook County property tax bills
https://ccao-data.github.io/ptaxsim/
GNU Affero General Public License v3.0
11 stars 2 forks source link

Error message on unsupported years in ptaxsim::tax_bill() #24

Open rross0 opened 9 months ago

rross0 commented 9 months ago

I was using ptaxsim, and I tried to recover a tax bill for the year 2022:

raceway <- c("02252020080000", "02243030070000", "02251000050000", "02262010100000")
test <- tax_bill(year_vec = 2022, pin_vec = raceway)
Error in check_pin_dt_str(pin_dt) : 
  pin_dt must be in the same format as the PIN data returned by lookup_pin(). Ensure there is 1 row per PIN per year and all column names and types are the same

I think that this year just isn't available in ptaxsim. Might want to include an error message to that effect.

dfsnow commented 9 months ago

Good idea @rross0. I'll add a more useful error here in the next few weeks.