g.getM5L5: Extract M5 and L5 from time series

View source: R/g.getM5L5.R

g.getM5L5R Documentation

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

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

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

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

Author(s)

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

Examples

  ## Not run: 
    data(data.getmeta)
    g.getM5L5(varnum=data.getmeta,ws3=5,t0_LFMF=0,t1_LFMF=24,M5L5res=10,winhr=5)
  
## End(Not run)

GGIR documentation built on Oct. 17, 2023, 1:12 a.m.