wt_baseline | R Documentation |
Calculate non-wear time from raw acceleration data by finding intervals in which the acceleration standard deviation is below a std_threshold value
wt_baseline(
df,
sample_rate = NULL,
std_threshold = 0.004,
min_interval = 90L,
use_vmu = FALSE,
verbose = TRUE
)
wt_xyz(
df,
sample_rate = NULL,
std_threshold = 0.004,
min_interval = 90L,
use_vmu = FALSE,
verbose = TRUE
)
wt_vmu(..., min_interval = 105L, use_vmu = TRUE)
df |
activity data, usually output from |
sample_rate |
sample rate (integer) of the sampling frequency in Hertz from the header |
std_threshold |
standard deviation threshold in g |
min_interval |
minimum interval (in minutes) that determines non-wear |
use_vmu |
Use vector magnitude |
verbose |
print diagnostic messages |
... |
not used |
A tibble of time and indicator of wear
See https://doi.org/10.1101/2020.07.08.20148015
if (isTRUE(wt_packages_installed())) {
path = system.file("extdata", "TAS1H30182785_2019-09-17.gt3x",
package = "weartime")
df = read.gt3x::read.gt3x(path, asDataFrame = TRUE,
imputeZeroes = TRUE,
verbose = TRUE)
out = wt_baseline(df)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.