markingTime {PhysicalActivity} | R Documentation |
Mark Days
Description
This function adds a "day" variable to the source dataset. The day is marked in numeric order, according to the timestamp variable.
Usage
markingTime(dataset, timestamp, startTime = "00:00:00", tz = "UTC")
Arguments
dataset |
The source dataset, in dataframe format, which needs to be marked. |
timestamp |
The column name in the dataset that will be used as timestamp. |
startTime |
Define the starting time of a day. It must be in the format of "hh:mm:ss". |
tz |
Local time zone, defaults to UTC. |
Value
A dataframe with an extra day marking column.
Author(s)
Zhouwen Liu zhouwen.liu@vumc.org
References
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.
[Package PhysicalActivity version 0.2-4 Index]