# minimum
interarrival(dat)# with optional arguments
interarrival(dat, start, end, var = "precip", p.cut = 0.3,
inv = FALSE, id)
data.frame
, must have at least date
and a
field to calculate an interarrival with (such as precip)start
, and if
start
is omitted, will use maximum yearprecip
p.cut
are considered to be wet days, and the complement are
dry days; a trace amount of 0.3 mm is suggestedlogical
; invert convention of the starting date such
that the date is the first wet day if inv=FALSE
(default), or the date is the first dry day if
inv=TRUE
dat
interarrival
object (which inherits the data.frame
class) with date
, wet
, dry
and fact
fields
(if supplied with a width
value).inv=TRUE
, this
convention is inverted to the first day of non-precipitation).
Missing or NA
precipitation values voids the number of counted
days between and within segments, which implies that days without
precipitation need to explicitly have zeros.plot.interarrival
data(mscdata)
van.int <- interarrival(mscdata, id=1108447)
plot(van.int, log=FALSE, maxy=30)
Run the code above in your browser using DataLab