compute_breaks {trackeR}R Documentation

Compute a grid of breakpoints per variable from a trackeRdata object.

Description

Compute a grid of breakpoints per variable from a trackeRdata object.

Usage

compute_breaks(
  object,
  a = 1e-04,
  n_breaks = 9,
  limits = NULL,
  what = c("speed", "heart_rate")
)

Arguments

object

A trackeRdata object.

a

The levels at which quantiles will be computed are a and 1 - a. Default is a = 0.0001.

n_breaks

A scalar determining the number of breakpoints to be computed

limits

A list of a vectors, each specifying the lower and upper limit for each variable to be used when computing the grid. Default is NULL, in which case compute_limits is used.

what

The variables for which a grid of breakpoints should be computed. Defaults to c("speed", "heart_rate").

Value

A named list with names as in what, with elements the grids of breakpoints per variable.

Examples

data("runs")
compute_breaks(runs, what = c("speed", "heart_rate", "altitude"))

[Package trackeR version 1.6.0 Index]