Learn R Programming

GGIR (version 3.2-0)

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, epochSize, t0_LFMF, t1_LFMF, M5L5res, winhr, qM5L5 = c(), 
            iglevels = c(), MX.ig.min.dur = 10)

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

Arguments

varnum

Numeric vector of epoch values

epochSize

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

qM5L5

Percentiles (quantiles) to be calculated over L5 and M5 window.

iglevels

See g.analyse. If provided then the intensity gradient will be calculated for all MX windows larger or equal than argument MX.ig.min.dur

MX.ig.min.dur

Minimum MX duration needed in order for intensity gradient to be calculated

Author

Vincent T van Hees <v.vanhees@accelting.com>

Examples

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

Run the code above in your browser using DataLab