wetDayCount: Get number of wet days

Description Usage Arguments Value Author(s) Examples

Description

WetDayCount returns the number of wet days with a certain threshold in mm).

Usage

1
WetDayCount(yearDF, datecol, valcol, vthreshold)

Arguments

yearDF

dataframe with climate data

datecol

column with dates

valcol

column with precipitation data

vthreshold

threshold in mm

Value

number of wet days.

Author(s)

Jose Gama

Examples

1
2
3
4
5
setwd(system.file('extdata/', package='climtrends'))
z<-ReadECAdata('RR_SOUID101991.txt')
d1900.2000<-z[which(z[,1]<'2001-01-01'),]
d1900.2000<-d1900.2000[which(d1900.2000[,1]>='1900-01-01'),]
y1900.2000w<-WetDayCount(d1900.2000,1,2,10)

climtrends documentation built on May 29, 2017, 11:58 p.m.