select_steps {pressuRe}R Documentation

Select steps

Description

Select steps, usually from insole data, and format for analysis

Usage

select_steps(
  pressure_data,
  threshold = "auto",
  min_frames = 10,
  n_steps = 5,
  skip = 2
)

Arguments

pressure_data

List. First item should be a 3D array covering each timepoint of the measurement. z dimension represents time.

threshold

Numeric. Threshold force to define start and end of step. If "auto", function will set threshold at minimum force in trial + 10N

min_frames

Numeric. Minimum number of frames that need to be in step

n_steps

Numeric. Target number of steps/cycles. User will be asked to keep selected steps until this target is reached or they run out of candidate steps

skip

Numeric. Usually the first few steps of a trial are accelerating and not representative of steady state walking so this removes them

Value

Examples


pedar_data <- system.file("extdata", "pedar_example.asc", package = "pressuRe")
pressure_data <- load_pedar(pedar_data)
pressure_data <- select_steps(pressure_data)


[Package pressuRe version 0.2.4 Index]