Learn R Programming

precintcon (version 2.1)

as.monthly: Convert a daily precipitation serie to a monthly serie

Description

Converts a daily precipitation serie to a monthly serie.

Usage

as.monthly(object)

Arguments

object
a precintcon.daily object or a data.frame containing 33 or 3 columns

Value

  • A data.frame (precintcon.monthly) containing the following variables:
    • yearis the year.
    • monthis the month.
    • precipitationis the precipitation amount in millimeters.

See Also

pplot.lorenz read.data

Examples

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

## Converting precipitation
#
as.monthly(daily)

Run the code above in your browser using DataLab