This function marks the dataset with wearing/non-wearing tags.
marking(
dataset,
frame,
cts = getOption("pa.cts"),
streamFrame = NULL,
allowanceFrame = 2,
newcolname = "wearing"
)
The source dataset, in dataframe format, which needs to be marked.
The size of time interval to be considered.
The name of the counts column. The default is "axis1".
The size of time interval that the program will look back or forward if activity is detected. The default is the half of frame.
The size of time interval that zero counts allowed. The default is 2.
The wearing marking column name. The default is "wearing". After the data is processed, a new field will be added to the original dataframe. This new field is the wearing /nowwearing indicator.
A dataframe with an extra wearing/non-wearing 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.