g.loadlog {GGIR} | R Documentation |
Load and clean sleeplog information
Description
Loads sleeplog from a csv input file and applies sanity checks before storing the output in a dataframe
Usage
g.loadlog(loglocation=c(),coln1=c(),colid=c(),
sleeplogsep=",", meta.sleep.folder = c(),
desiredtz="")
Arguments
loglocation |
Location of the spreadsheet (csv) with sleep log information. See package vignette for explanation on expected format |
coln1 |
Column number in the sleep log spreadsheet where the onset of the first night starts |
colid |
Column number in the sleep log spreadsheet in which the participant ID code is stored (default = 1) |
sleeplogsep |
Value used as sep argument for reading sleeplog csv file, usually "," or ";". This argument has been deprecated. |
meta.sleep.folder |
Path to part3 milestone data, only specify if sleeplog is in advanced format. |
desiredtz |
See g.part4 |
Value
Data frame with sleeplog, which can be either in basic format or in advanced format. See GGIR package vignette for discussion of these two formats.
Author(s)
Vincent T van Hees <v.vanhees@accelting.com>
Examples
## Not run:
sleeplog = g.loadlog(loglocation="C:/mysleeplog.csv",coln1=2,
colid=1)
## End(Not run)