markingTime: Mark Days

Description Usage Arguments Value Author(s) References

View source: R/markingTime.R

Description

This function adds a "day" variable to the source dataset. The day is marked in numeric order, according to the timestamp variable.

Usage

1
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.


PhysicalActivity documentation built on Jan. 23, 2021, 1:06 a.m.