Description Usage Arguments Value
View source: R/preprocessing.R
create_date_var
This function Create a binary input variable corresponding
to given intervals if the time stamps correspond to a date within the given
interval then the value of the input variables will be equal to 1 and if not it
will be equal to 0
1 2 |
Data |
A dataframe of pre or post-installation data. |
intervals_path |
A path to the file with intervals to extract |
start |
A vector of start date of each interval |
end |
A vector of end date of each interval. Note that start vector and end vector should have the same length |
var_name |
A string character that correspond to the name of the new input variable |
a dataframe with the additional input variable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.