create_Timedata: Create a Time-of-Day column in the dataset
Description
Create a Time-of-Day column in the dataset
Usage
create_Timedata(
dataset,
Datetime.colname = Datetime,
Time.data = Time.data,
output.dataset = TRUE
)
Value
a data.frame object identical to dataset but with the added
column of Time-of-Day data, or a vector with the Time-of-Day-data
Arguments
- dataset
A light logger dataset. Expects a dataframe. If not imported
by LightLogR, take care to choose a sensible variable for the
Datetime.colname.
- Datetime.colname
column name that contains the datetime. Defaults to
"Datetime" which is automatically correct for data imported with
LightLogR. Expects a symbol. Needs to be part of the dataset.
- Time.data
Name of the newly created column. Expects a symbol. The
default(Time.data) works well with other functions in LightLogR.
- output.dataset
should the output be a data.frame (Default TRUE) or
a vector with hms (FALSE) times? Expects a logical scalar.
Examples
Run this codesample.data.environment %>% create_Timedata()
Run the code above in your browser using DataLab