Description Usage Arguments Details Author(s) Examples
Utility function to prepare input data for use in openair functions
1 2 | splitByDate(mydata, dates = "1/1/2003", labels = c("before", "after"),
name = "split.by")
|
mydata |
A data frame containing a |
dates |
A date or dates to split data by. |
labels |
Labels for each time partition. |
name |
The name to give the new column to identify the periods split |
This function partitions a data frame up into different time segments. It
produces a new column called controlled by 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.
David Carslaw
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.