soj_1x_original: Invoke the original uni-axial Sojourn method

Description Usage Arguments Value Examples

View source: R/soj_1x_original.R

Description

Calls the uni-axial Sojourn method from Lyden et al. (2014).

Usage

1
2
3
4
5
6
7
8
9
soj_1x_original(
  counts,
  perc.cut = 0.05,
  perc.cut.2 = 0.12,
  perc.cut.3 = 0.55,
  too.short = 10,
  sit.cut = 90,
  long.soj = 120
)

Arguments

counts

numeric vector of vertical axis counts

perc.cut

decision tree threshold 1

perc.cut.2

decision tree threshold 2

perc.cut.3

decision tree threshold 3

too.short

minimum length of one Sojourn

sit.cut

cut-point for determining sitting

long.soj

maximum length of one Sojourn

Value

a data frame of processed data

Examples

1
2
3
data(example_data, package = "Sojourn")
results_1x <- soj_1x_original(example_data$axis1)
utils::head(results_1x)

Sojourn documentation built on May 8, 2021, 1:06 a.m.