write_acc_csv: Write ActiGraph-like Accelerometer CSV

View source: R/write_acc_csv.R

write_acc_csvR Documentation

Write ActiGraph-like Accelerometer CSV

Description

Write ActiGraph-like Accelerometer CSV

Usage

write_acc_csv(x, file = tempfile(fileext = ".csv.gz"))

Arguments

x

either an AccData or a data.frame of time and values.

file

CSV file to write out

Value

The character path of the output file.

Examples

file = system.file("extdata", "TAS1H30182785_2019-09-17.csv.gz",
package = "SummarizedActigraphy")
if (file.exists(file)) {
   x = read_acc_csv(file)
   outfile = write_acc_csv(x)
   out2 = read_acc_csv(outfile)
   all.equal(x$data, out2$data)
}

muschellij2/SummarizedActigraphy documentation built on Aug. 12, 2024, 5:35 p.m.