Skip to contents

Not intended for direct use by GGIR users. Saves oart 5 time series to csv files as part of g.part5.

Usage

g.part5.savetimeseries(ts, LEVELS, desiredtz, rawlevels_fname,
  save_ms5raw_format="csv",
  save_ms5raw_without_invalid=TRUE,
  DaCleanFile=c(), includedaycrit.part5=2/3, ID=c(), sep_reports = ",")

Arguments

ts

LEVELS

desiredtz

See g.getmeta.

rawlevels_fname

save_ms5raw_format

See g.part5

save_ms5raw_without_invalid

See g.part5

DaCleanFile

Content of data_cleaning_file as documented in g.report.part5. Only used in this function if save_ms5rawlevels is TRUE, and it only affects the time series files stored.

includedaycrit.part5

See g.report.part5. Only used in this function if save_ms5rawlevels is TRUE, and it only affects the time series files stored.

ID

If data_cleaning_file is used then this argument specifies which participant ID the data correspond with.

sep_reports

Character (default = ","). Value used as sep argument in write.csv for writing csv files with the GGIR reports.

Value

Function does not provide output, it only prepare data for saving and saves it to a file.

Author

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