This function adds a "day" variable to the source dataset. The day is marked in numeric order, according to the timestamp variable.
markingTime(dataset, timestamp, startTime = "00:00:00", tz = "UTC")
The source dataset, in dataframe format, which needs to be marked.
The column name in the dataset that will be used as timestamp.
Define the starting time of a day. It must be in the format of "hh:mm:ss".
Local time zone, defaults to UTC.
A dataframe with an extra day marking column.
Choi L, Liu Z, Matthews CE, Buchowski MS. Validation of accelerometer wear and nonwear time classification algorithm. Med Sci Sports Exerc. 2011 Feb;43(2):357-64.