Learn R Programming

precintcon (version 2.3.0)

as.fd: Frequency distribution of a precipitation serie

Description

Calculates the frequency distribution of a daily precipitation serie based on interval.

Usage

as.precintcon.fd(object, interval = 1)

Arguments

object
a daily precipitation serie.
interval
the interval in millimeters for calculating the frequency distribution.

Value

A data.frame (precintcon.fd) containing the following variables:
  • initial.class is the initial value of the class.
  • final.class is the final value of the class.
  • midpoint is the middle point of the class.
  • n is the absolute freqnecy, i.e., the number of days in each class.
  • sum.n is the cumulative frequency, obtained by adding the absolute frequencies of all the classes up to the one under consideration.
  • P is the pluviometric total of each class, obtained by multiplying midpoint by n.
  • sum.P is the cummulative class's pluviometric total, obtained by adding the pluviometric total of all the classes up to the one under consideration.
  • p.sum.n is the cumulative percentage of rainy days.
  • p.sum.P is the cumulative percentage of rainfall amounts.

See Also

read.data as.daily ci

Examples

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

##
# Performing the frequency distribution
as.precintcon.fd(daily)

Run the code above in your browser using DataLab