Skip to contents

Determines how many moderate, vigrous, and moderate-vigrous physical activity minutes occurred for a given interval.

Usage

mpa_min_ap(mets, epoch = 1)

vpa_min_ap(mets, epoch = 1)

mvpa_min_ap(mets, epoch = 1)

Arguments

mets

A numeric vectors of METs (metabolic equivalents).

epoch

Length of interval, default is 1 second.

Value

Numeric vector denoting the number of minutes.

Details

These functions are similar to the activpalProcessing::mvpa.min.AP() function but the METs cutoff values used to define the levels of activity have be adjusted.

  • METs between [3, 6) define moderate physical activity

  • METs greater than or equal to 6 define vigrous physical activity

  • METs greater than or equal to 3 define moderate-vigrous physical activity

Examples

x <- runif(100, 1, 10)
mpa_min_ap(x)
#> [1] 0.6
vpa_min_ap(x)
#> [1] 0.6333333
mvpa_min_ap(x)
#> [1] 1.233333