Last data update: 2014.03.03

R: Standardized Precipitation Index
spiR Documentation

Standardized Precipitation Index

Description

Calculates the Standardized Precipitation Index (SPI) on a daily or monthly precipitation serie.

Usage

spi(object, period = 3, distribution = "Gamma")

Arguments

object

a daily or monthly precipitation serie.

period

the number of months to be aggregated in the calculation of the standardized precipitation index. (Default value: 3)

distribution

it has no effect yet. (Default value: "Gamma")

Value

A data.frame (precintcon.spi) containing the following variables:

  • year is the year.

  • month is the month.

  • spi is the standardized precipitation index.

Author(s)

Lucas Venezian Povoa lucasvenez@gmail.com

See Also

precintcon.plot.spi read.data

Examples

##
# Loading the monthly precipitation serie.
data(monthly)

##
# Performing the Standardized Precipitation Index
spi(monthly, period = 3)

Results