Get number of wet days

Share:

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.