Learn R Programming

raveio (version 0.9.0)

rave_export: Export 'RAVE' data

Description

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, ...)

Value

Exported data path

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

Run this code

x <- "my data"
path <- tempfile()
rave_export(x, path)

readRDS(path)

if (FALSE) {
  # Needs demo subject
  path <- tempfile()
  x <- prepare_subject_power("demo/DemoSubject")

  # Export power data to path
  rave_export(x, path)
}

Run the code above in your browser using DataLab