Learn R Programming

precintcon (version 2.1)

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.classis the initial value of the class.
    • final.classis the final value of the class.
    • midpointis the middle point of the class.
    • nis the absolute freqnecy, i.e., the number of days in each class.
    • sum.nis the cumulative frequency, obtained by adding the absolute frequencies of all the classes up to the one under consideration.
    • Pis the pluviometric total of each class, obtained by multiplyingmidpointbyn.
    • sum.Pis the cummulative class's pluviometric total, obtained by adding the pluviometric total of all the classes up to the one under consideration.
    • p.sum.nis the cumulative percentage of rainy days.
    • p.sum.Pis 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