View source: R/write_acc_csv.R
write_acc_csv | R Documentation |
Write ActiGraph-like Accelerometer CSV
write_acc_csv(x, file = tempfile(fileext = ".csv.gz"))
x |
either an |
file |
CSV file to write out |
The character path of the output file.
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.