I have precipitation values for about 100 years for about 100 rain guage stations. how can I calculate the annual Standardized Precipitation Index using R software?
I totally agree with Akintomide Afolayan Akinsanola. Moreover, if your rainguage stations are within a basin, I suggest you estimate mean areal precipitation and (ofcourse if that is within the scope of your study) before you compute the spi.