% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pressuRe_functions.R
\name{select_steps}
\alias{select_steps}
\title{Select steps}
\usage{
select_steps(
  pressure_data,
  threshold = "auto",
  min_frames = 10,
  n_steps = 5,
  skip = 2
)
}
\arguments{
\item{pressure_data}{List. First item should be a 3D array covering each
timepoint of the measurement. z dimension represents time.}

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

\item{min_frames}{Numeric. Minimum number of frames that need to be in step}

\item{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}

\item{skip}{Numeric. Usually the first few steps of a trial are accelerating
and not representative of steady state walking so this removes them}
}
\value{
\itemize{
  \item pressure_array. 2D array covering each timepoint of the measurement.
           Sensors are columns, time is rows
  \item pressure_system. String defining pressure system
  \item sens_size. Numeric vector with the dimensions of the sensors
  \item time. Numeric value for time between measurements
  \item masks. List
  \item events. Data frame
  \item sensor_polygons. Data frame with corners of sensors
  \item max_matrix. Matrix
  }
}
\description{
Select steps, usually from insole data, and format for analysis
}
\examples{
\dontshow{if (interactive()) withAutoprint(\{ # examplesIf}
pedar_data <- system.file("extdata", "pedar_example.asc", package = "pressuRe")
pressure_data <- load_pedar(pedar_data)
pressure_data <- select_steps(pressure_data)
\dontshow{\}) # examplesIf}
}
