View source: R/RMevents_sample.R
RMevents_sample | R Documentation |
Compute rainfall event variables based on time series of rain data with only one rain gage or one mean radar rain column. The function does not calculate events based on the rain data itself (such as in RMevents), but rather calculates event variables based on an input of sample/event start and end times.
RMevents_sample( dfrain, ieHr = 6, rain = "rain", time = "pdate", dfsamples, bdate = "bpdate", edate = "epdate" )
dfrain |
dataframe with rainfall |
ieHr |
numeric Interevent period in hours, defaults to 6, |
rain |
string Column name of rainfall unit values, defaults to "rain" |
time |
string column with as.POSIXctdate, defaults to "pdate" |
dfsamples |
dataframe with the beginning and ending dates and times of sampling periods in POSIXct format |
bdate |
character column name in dfsamples for the beginning of the sampling period |
edate |
character column name in dfsamples for the ending of the sampling period |
list of storms and storms2
RDB <- CedarRRain cedarSamples <- cedarSamples names(RDB)[2] <- "UVRain" RDB2 <- RMprep(RDB,prep.type=1,date.type=1, dates.in="CST.Time",tz="CST6CDT") eventListSamples <- RMevents_sample(df=RDB2,ieHr=6, rain="UVRain", time="pdate", dfsamples=cedarSamples, bdate="pSstart",edate="pSend")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.