Calculating Standardized Precipitation Index (SPI) in R

That didnt work...
we don't have your csv.
start your reprex from when you construct newdata; and share with us a representation of newdata :slight_smile: