create_test_sleeplog_csv: Creates csv sleeplog file for testing purposes

View source: R/create_test_sleeplog_csv.R

create_test_sleeplog_csvR Documentation

Creates csv sleeplog file for testing purposes

Description

Creates sleeplog file in the format as expected by g.part4 with dummy data (23:00 onset, 07:00 waking time for every night).

Usage

  create_test_sleeplog_csv(Nnights = 7, storagelocation = c(),
                            advanced = FALSE, sep = ",")

Arguments

Nnights

Number of nights (minimum is 1)

storagelocation

Location where the test file named testfile.csv will be stored If no value is provided then the function uses the current working directory

advanced

Boolean to indicate whether to create an advanced sleeplog that also includes logs of nap times and nonwear

sep

Character to indicate the column separator of the csv file.

Value

The function does not produce any output values. Only the file is stored

Examples

  ## Not run: 
    create_test_sleeplog_csv()
  
## End(Not run)

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