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

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
as.decade(object)

Arguments

object

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

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.

Value

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

Author(s)

Lucas Venezian Povoa lucasvenez@gmail.com

See Also

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

Examples

1
2
3
4
5
6
7
##
# Loading the daily precipitation serie.
data(daily)

##
# Converting precipitation
as.decade(daily)

Example output

Loading required package: ggplot2
Loading required package: scales

Attaching package: 'precintcon'

The following object is masked from 'package:ggplot2':

    stat

[1]  5 15 25
  year precipitation
1 1980       13727.8
2 1990       14128.6
3 2000       12164.2

precintcon documentation built on May 2, 2019, 3:07 p.m.