import_raw: Function for reading raw data.

View source: R/file_io.R

import_rawR Documentation

Function for reading raw data.

Description

Currently BDF/EDF, 32-bit .CNT, and Brain Vision Analyzer files are supported. Filetype is determined by the file extension.The edfReader package is used to load BDF/EDF files, whereas custom code is used for .CNT and BVA files. The function creates an eeg_data structure for subsequent use.

Usage

import_raw(
  file_name,
  file_path = NULL,
  recording = NULL,
  participant_id = NA,
  fast_bdf = TRUE
)

Arguments

file_name

File to import. Should include file extension.

file_path

Path to file name, if not included in filename.

recording

Name of the recording. By default, the filename will be used.

participant_id

Identifier for the participant. Defaults to NA.

fast_bdf

New, faster method for loading BDF files. Experimental.

Value

An object of class eeg_data

Author(s)

Matt Craddock, matt@mattcraddock.com

Examples

## Not run: 
import_raw("test_bdf.bdf")

## End(Not run)

craddm/eegUtils documentation built on March 24, 2022, 9:17 a.m.