| sdt_count_steps | R Documentation |
Estimate Steps via SDT
sdt_count_steps(
data,
sample_rate,
order = 4L,
high = 0.25,
low = 2.5,
location = c("wrist", "waist"),
verbose = TRUE
)
data |
A |
sample_rate |
sampling frequency (in Hz) |
order |
order of bandpass Butterworth filter order |
high |
highpass threshold for filter |
low |
lowpass threshold for filter |
location |
location of the device, which indicates a different threshold for peaks |
verbose |
print diagnostic messages |
A data.frame of timeand steps
csv_file = system.file("test_data_bout.csv", package = "walking")
if (requireNamespace("readr", quietly = TRUE)) {
x = readr::read_csv(csv_file)
colnames(x)[colnames(x) == "UTC time"] = "time"
res = sdt_count_steps(data = x, sample_rate = 100L)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.