repro-workshop icon indicating copy to clipboard operation
repro-workshop copied to clipboard

Possible error in prepare_inflation.R in the Posit Cloud

Open schumaki opened this issue 2 years ago • 1 comments

Part of 'transform-inflation' in /cloud/project/R/prepare_inflation.R is to get the expectation regarding inflation.

L39 reads like this: expectation = ifelse(E1y_all == 99.0, NA, P_all),

I think, the P_all in the else-case is a copy-paste-error from L38. It should be: expectation = ifelse(E1y_all == 99.0, NA, E1y_all ),

schumaki avatar Sep 27 '23 08:09 schumaki

Thanks for pointing this out!

aaronpeikert avatar Sep 28 '23 06:09 aaronpeikert