resample_acc | R Documentation |
Resample Accelerometer Data
resample_acc(df, sample_rate = NULL, to_hz = 100L, verbose = TRUE)
df |
activity data, usually output from |
sample_rate |
sample rate (integer) of the Hertz from the header |
to_hz |
sample rate (integer) to resample to |
verbose |
print diagnostic messages |
A tibble
of resampled data
reticulate::py_config()
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)
res = resample_acc(df)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.