SensorData.cleanup: Clean up sensor dataframe by removing invalid timestamps,...

Usage Arguments

View source: R/SensorData.R

Usage

1
SensorData.cleanup(sensorData, level = "year", ref = NULL)

Arguments

sensorData

input dataframe that matches mhealth specification

level

"second", "minute", "hour", "day", "month", or "year"; used to trim data that doesn't match the reference value.

ref

the reference date string for the certain time "level". E.g. "2015-10", for level "month"; the string format should follow "

For example, if level is "year", sensor data will be trimmed according to the provided ‘ref' date’s year; or if 'gt' is not provided, the reference value of "year" level will be the most frequent year. Make sure that the data frame is including timestamps.


qutang/mhealth-data-processing-r documentation built on Sept. 3, 2019, 1:19 a.m.