estimate_steps: Estimate Steps with Unified Syntax

estimate_steps_forestR Documentation

Estimate Steps with Unified Syntax

Description

Estimate Steps with Unified Syntax

Usage

estimate_steps_forest(data, ...)

have_forest()

estimate_steps_verisense(
  data,
  resample_to_15hz = FALSE,
  ...,
  method = c("original", "revised")
)

estimate_steps_sdt(data, ...)

Arguments

data

A data.frame with a column for time in POSIXct (usually HEADER_TIMESTAMP), and X, Y, Z

...

additional arguments to pass to specific method

resample_to_15hz

resample the data to 15Hz as verisense indicated that was the sample rate this was designed under.

method

Either using the original parameters verisense_count_steps() or the revised parameters verisense_count_steps_revised()

Value

A data.frame of seconds and steps

Examples

run_example = FALSE
csv_file = system.file("test_data_bout.csv", package = "walking")
if (requireNamespace("readr", quietly = TRUE)) {
  run_example = TRUE
  x = readr::read_csv(csv_file)
  colnames(x)[colnames(x) == "UTC time"] = "time"
  out = estimate_steps_verisense(x, sample_rate = 10L,
                                 method = "original")
  out = estimate_steps_verisense(x, sample_rate = 10L,
                                 method = "revised")
  out = estimate_steps_sdt(x, sample_rate = 10L)
}

if (requireNamespace("readr", quietly = TRUE) &&
    reticulate::py_module_available("forest")) {
    out = estimate_steps_forest(x, sample_rate_analysis = 10L)
  }



walking documentation built on Aug. 4, 2026, 1:07 a.m.