stand.min.AP {activpalProcessing}R Documentation

Estimate Time Spent Standing

Description

This function to calculates the hours spent standing

Usage

stand.min.AP(posture, epoch = 1)

Arguments

posture

posture is vector indicating sitting (0), standing (1) and stepping (2)

epoch

numeric value indicating what epoch (in seconds) the data are in (e.g. 60 = 1 minute epochs). The default value is 1 second

Value

a numeric value indicating hours spent standing

Author(s)

Kate Lyden

See Also

sed.min.AP step.min.AP

Examples

data(second.by.second.data)
posture <- second.by.second.data$ap.posture
	
stand.min.AP(posture,epoch=1)

# summarize by date
tapply(second.by.second.data$ap.posture, second.by.second.data$date, stand.min.AP,epoch=1)


[Package activpalProcessing version 1.0.2 Index]