
Last chance! 50% off unlimited learning
Sale ends in
splitByDate(mydata, dates = "1/1/2003", labels = c("before", "after"),
name = "split.by")
date
field in hourly or high
resolution format.name
that can be used in many
openair
functions. Note that there must be one more label than there
are dates. See examples below and in full openair
documentation.
## split data up into "before" and "after"
mydata <- splitByDate(mydata, dates = "1/04/2000",
labels = c("before", "after"))
## split data into 3 partitions:
mydata <- splitByDate(mydata, dates = c("1/1/2000", "1/3/2003"),
labels = c("before", "during", "after"))
Run the code above in your browser using DataLab