Learn R Programming

GGIR (version 1.8-1)

g.getM5L5: Extract M5 and L5 from time series

Description

Extract M5 and L5 from time series, function used by g.analyse and not intended for direct use by package user. Please see g.analyse for further clarification on functionalities

Usage

g.getM5L5(varnum,ws3,t0_LFMF,t1_LFMF,M5L5res,winhr)

Arguments

varnum

Numeric vector of epoch values

ws3

Small epoch size in seconds

t0_LFMF

Start hour of the day for the M5L5 analyses, e.g. 0 for midnight

t1_LFMF

End hour of the day for the M5L5 analyses, e.g. 24 for midnight

M5L5res

Resolution of hte M5L5 analyses in minutes

winhr

windowsize of M5L5 analyses, e.g. 5 hours

Value

  • DAYL5HOUR = Starting time in hours of L5

  • DAYL5VALUE = average acceleration during L5

  • DAYM5HOUR = Starting time in hours of M5

  • DAYM5VALUE = average acceleration during M5

  • V5NIGHT = average acceleration between 1am and 6am

Examples

Run this code
# NOT RUN {
data(data.getmeta)
g.getM5L5 = function(varnum=data.getmeta,ws3=5,t0_LFMF=0,
t1_LFMF=24,M5L5res=10,winhr=5)
# }

Run the code above in your browser using DataLab