Learn R Programming

GGIR (version 2.6-0)

g.analyse.perday: Function supports g.analyse. Not intended for direct use by user.

Description

Generates day specific analyses and fills corresponding output matrix, g.analyse.

Usage

g.analyse.perday(selectdaysfile, ndays, firstmidnighti, time, nfeatures, 
                midnightsi, metashort, averageday,
                doiglevels, nfulldays,lastmidnight, ws3, ws2, qcheck,
                fname, idloc, BodyLocation, wdayname, tooshort, includedaycrit,
                doquan, quantiletype, doilevels, domvpa,
                mvpanames, wdaycode, ID,
                deviceSerialNumber, ExtFunColsi, myfun, desiredtz = "",
                params_247 = c(), params_phyact = c(),
                ...)

Arguments

selectdaysfile
ndays

Number of days in file

firstmidnighti
time

timestamp column from metalong converted to character

nfeatures

estimate of number of variables that need to be stored in the output matrix

midnightsi
metashort
averageday

As produced by g.impute

doiglevels

Boolean to indicate whether iglevels should be calculated

nfulldays

Number of days between the first and last midnight in the recording

lastmidnight
ws3

Epoch size in seconds

ws2
qcheck

vector with zeros and ones for each epoch, respenting the quality check derived with g.impute

fname

RData filename produced by g.part1

idloc
BodyLocation

as produced by g.extractheadervars

wdayname

character with weekdayname

tooshort

0 (file not too short) or 1 (file too short)

includedaycrit
doquan

Boolean whether quantile analysis should be done

quantiletype
doilevels

Boolean whether to generate ilevels, see g.analyse

domvpa

Boolean whether to do mvpa analysis

mvpanames

Matrix with 6 columns and 1 row holding the names for the six mvpa variables

wdaycode

Equal to M$wday as produced by g.getmeta

ID

Person Identification number, this can be numeric or character

deviceSerialNumber

As produced by g.extractheadervars

ExtFunColsi

column index of metashort where metric is stored

myfun

External function object to be applied to raw data, see g.getmeta.

desiredtz
params_247
params_phyact
...

Any argument used in the previous version of g.analyse.perday, which will now be used to overrule the arguments specified with the parameter objects.

Value

daysummary

Summary per day for the file that was analysed

ds_names

Variable names in daysummary

windowsummary

Window summary, only used when selectdayfile is specified

ws_names

Variable names in windowsummary