estimate_calibration_values | R Documentation |
Calibrate Accelerometer Data using GGIR
estimate_calibration_values(
file,
verbose = TRUE,
fix_zeros = TRUE,
fill_in = TRUE,
by_second = FALSE,
trim = FALSE,
...
)
calibrate(
file,
verbose = TRUE,
fix_zeros = TRUE,
fill_in = TRUE,
by_second = FALSE,
trim = FALSE,
round_after_calibration = TRUE,
...
)
file |
Either a GT3X file, 'AccData' object, or 'data.frame' with 'X/Y/Z' and 'time' |
verbose |
print diagnostic messages, higher number result in higher verbosity |
fix_zeros |
Should |
fill_in |
if |
by_second |
Should the last observation carried forward be done only within the same second? |
trim |
if |
... |
Additional arguments to pass to |
round_after_calibration |
Should the data be rounded after calibration? Will round to 3 digits |
A set of calibration coefficients
## Not run:
index = 2
files = read.gt3x::gt3x_datapath(index)
if (all(is.na(files))) {
files = file.path(tempdir(), ".read.gt3x-data",
read.gt3x::gt3x_filename(index))
}
path = files[1]
res = read_actigraphy(path)
res = fix_zeros(res)
cab = calibrate(res)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.