One way to make this work: When the to_date is the current year, the user also has to provide an estimated inflation rate. However, it may also be useful to accept a whole vector of estimated / hypothesized inflation rates for the current and the next years when to_date is a future year.
One way to make this work: When the to_date is the current year, the user also has to provide an estimated inflation rate. However, it may also be useful to accept a whole vector of estimated / hypothesized inflation rates for the current and the next years when to_date is a future year.
Cool package, by the way!