Learn R Programming

precintcon (version 2.3.0)

as.decade: Converting a precipitation serie to a decade serie

Description

It converts a daily, monthly or annual precipitation serie to a decade serie.

Usage

as.decade(object)

Arguments

object
a precintcon.daily, precintcon.monthly, precintcon.seasonal, precintcon.annual object or a data.frame containing 33 or 3 columns.

Value

A data.frame (precintcon.decade) containing the following variables:
  • year is the year.
  • precipitation is the decade's precipitation in millimeters.

Details

It excludes no complete decades for converting the serie, e.g., a serie starting in 1977 and finishing in 2008 will have the year 1977 to 1979 and 2000 to 2008 excluded, resulting into a serie of the years 1980 and 1990.

See Also

as.precintcon.annual as.precintcon.seasonal as.precintcon.monthly as.precintcon.daily

Examples

Run this code
##
# Loading the daily precipitation serie.
data(daily)

##
# Converting precipitation
as.decade(daily)

Run the code above in your browser using DataLab