R/step.min.AP.R

Defines functions step.min.AP

Documented in step.min.AP

step.min.AP <-
function(posture,epoch=1)
{
	step.mins <- sum((posture=="2"),na.rm=T)/(60/epoch)
	if (step.mins==0)
		step.mins <- NA
	return(step.mins)
}

Try the activpalProcessing package in your browser

Any scripts or data that you put into this service are public.

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