rave_export: Export 'RAVE' data

View source: R/rave-export-repository.R

rave_exportR Documentation

Export 'RAVE' data

Description

Export portable data for custom analyses.

Usage

rave_export(x, path, ...)

## Default S3 method:
rave_export(x, path, format = c("rds", "yaml", "json"), ...)

## S3 method for class 'rave_prepare_subject_raw_voltage_with_epoch'
rave_export(x, path, zip = FALSE, ...)

## S3 method for class 'rave_prepare_subject_voltage_with_epoch'
rave_export(x, path, zip = FALSE, ...)

## S3 method for class '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

Value

Exported data path

Examples


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

readRDS(path)

## Not run: 
  # Needs demo subject
  path <- tempfile()
  x <- prepare_subject_power("demo/DemoSubject")

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

## End(Not run)


raveio documentation built on July 26, 2023, 5:29 p.m.