breaks.AP: Estimate the Number of Sit to Stand Transitions

Description Usage Arguments Value Author(s) Examples

View source: R/breaks.AP.R

Description

This function estimates the number of sit to stand transitions. This function works on a numeric vector where 0 indicates sitting, 1 indicates standing and 2 indicates stepping. The sum of the instances AP posture transitions from 0 to 1 or 0 to 2.

Usage

1
breaks.AP(posture)

Arguments

posture

a numeric vector (in any epoch) where 0 indicates sitting, 1 indicates standing and 2 indicates stepping.

Value

Numeric value indicating breaks from sitting

Author(s)

John Staudenmayer

Examples

1
2
3
4
5
6
7
data(second.by.second)
posture <- second.by.second.data$ap.posture	

breaks.AP(posture)

# summarize by date
tapply(second.by.second.data$ap.posture, second.by.second.data$date, breaks.AP)

activpalProcessing documentation built on May 2, 2019, 2:17 a.m.