Export portable data for custom analyses.
Usage
rave_export(x, path, ...)
# S3 method for default
rave_export(x, path, format = c("rds", "yaml", "json"), ...)
# S3 method for rave_prepare_subject_raw_voltage_with_epoch
rave_export(x, path, zip = FALSE, ...)
# S3 method for rave_prepare_subject_voltage_with_epoch
rave_export(x, path, zip = FALSE, ...)
# S3 method for rave_prepare_power
rave_export(x, path, zip = FALSE, ...)
Arguments
- x
R object or 'RAVE' repositories
- path
path to save to
- ...
passed to other methods
- format
export format
- zip
whether to zip the files
Examples
x <- "my data"
path <- tempfile()
rave_export(x, path)
#> [1] "/private/var/folders/3m/p59k4qdj0f17st0gn2cmj3640000gn/T/RtmpYz4H9c/file19a53c818c9"
readRDS(path)
#> [1] "my data"
if (FALSE) {
# Needs demo subject
path <- tempfile()
x <- prepare_subject_power("demo/DemoSubject")
# Export power data to path
rave_export(x, path)
}