Learn R Programming

ClimInd (version 0.1-2)

spi12: Standardized precipitation index 12

Description

Standardized precipitation index calculated at 12-month time scale

Usage

spi12(data, data_names = NULL, na.rm = FALSE, ...)

Arguments

data

precipitation

data_names

names of each period of time

na.rm

logical. Should missing values (including NaN) be removed?

...

...

Value

SPI

References

McKee, T. B., Doesken, N. J. and Kleist, J.: The relationship of drought frequency and duration to time scales, Eighth Conf. Appl. Climatol., 179<U+2013>184, 1993.

Examples

Run this code
# NOT RUN {
data(data_all)
spi12(data = data_all$rr)
# }

Run the code above in your browser using DataLab