create_date_var: Create an input variable corresponding to given intervals

Description Usage Arguments Value

View source: R/preprocessing.R

Description

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

Usage

1
2
create_date_var(Data, intervals_path = NULL, start = NULL, end = NULL,
  var_name = "date_off")

Arguments

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

Value

a dataframe with the additional input variable


LBNL-ETA/RMV2.0 documentation built on Nov. 9, 2020, 5:44 a.m.