rai {precintcon} | R Documentation |
Calculates the Rainfall Anomaly Index (RAI) on a daily or monthly precipitation serie.
rai(object, granularity = "m")
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") |
A data.frame (precintcon.rai) containing the following variables:
year
is the year.
month
is the month. This attribute exists only when granularity = "m".
rai
is the rainfall anomaly index.
Lucas Venezian Povoa lucasvenez@gmail.com
Van Rooy, M. P. "A rainfall anomaly index independent of time and space." Notos 14.43 (1965): 6.
##
# Loading the monthly precipitation serie.
data(monthly)
##
# Performing the Rainfall Anomaly Index analysis
rai(monthly, granularity = "m")