get_starttime_weekday_meantemp_truncdata: Get starttime (adjusted), weekday, mean temp, and adjust data...

View source: R/get_starttime_weekday_meantemp_truncdata.R

get_starttime_weekday_meantemp_truncdata R Documentation

Get starttime (adjusted), weekday, mean temp, and adjust data accordingly.

Description

Function not intended for direct use by user. Used inside g.getmeta as an intermediate step between loading the raw data and calibrating it. This step includes extracting the starttime and adjusting it to nearest integer number of long epoch window lengths in an hour, truncating the data accordingly, extracting the corresponding weekday and mean temperature (if temperature is available).

Usage

  get_starttime_weekday_meantemp_truncdata(temp.available, monc, 
  dformat, data, P, header, desiredtz, sf, i,
  datafile, ws2, starttime, wday, wdayname, configtz = NULL)

Arguments

temp.available

Boolean whether temperate is available.

monc

See g.inspectfile

dformat

See g.dotorcomma

data

Data part of g.readaccfile output

P

data loaded from accelerometer file with g.readaccfile

header

Header part of g.readaccfile output

desiredtz

See g.getmeta

sf

Numeric, sample frequency in Hertz

i

Integer index of passed on from g.getmeta to indicate what data block is being read.

datafile

See g.getmeta

ws2

Long epoch length

starttime

Once calculate it is remembered and fed into this function again, such that it does not have to be recalulated.

wday

Once calculate it is remembered and fed into this function again, such that it does not have to be recalulated.

wdayname

Once calculate it is remembered and fed into this function again, such that it does not have to be recalulated.

configtz

See g.getmeta

Author(s)

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


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