Learn R Programming

precintcon (version 2.3.0)

as.seasonal: Converting to seasonal precipitation serie

Description

It converts a daily or monthly precipitation serie to a seasonal serie according to meteorological seasons.

Usage

as.seasonal(object)

Arguments

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

Value

A data.frame (precintcon.seasonal) containing the following variables:
  • year is the year.
  • season is the season.
  • precipitation is the precipitation amount in millimeters.

Details

If the serie has no a month of a season, it is waived in convertion, e.g., if a serie has January and February of 1975, but no December of 1974, the first two months are removed of the resulting serie because the season that depends all of them is not complete.

See Also

pplot.lorenz read.data

Examples

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

##
# Converting precipitation
as.seasonal(daily)

Run the code above in your browser using DataLab