Calculates the Rainfall Anomaly Index (RAI) on a daily or
monthly precipitation serie.
Usage
rai(object, granularity = "m")
Arguments
object
a daily or monthly precipitation serie.
granularity
the granularity applied for calculating the rainfall anomaly index,
which should be either "m" for monthly granularity or "a" for annual granularity. (Default value: "m")
Value
A data.frame (precintcon.rai) containing the following variables:
yearis the year.
monthis the month. This attribute exists only when granularity = "m".