,
Creates an eeg_lst object from BrainVision exported files.The function reads metadata from the .vhdr BrainVision file, which draws on the .vmrk and .dat/.eeg files. All three files must be in the same directory.
read_vhdr(
file,
.sep = .type == "New Segment",
.zero = .type == "Time 0",
.recording = file
)An eeg_lst object with signal_tbl and event from file_name.dat,
file_name.vhdr, and file_name.vmrk.
Other reading and writing functions:
read_edf(),
read_fif(),
read_ft(),
read_set()
if (FALSE) { # \dontrun{
# load a single subject
s1 <- read_vhdr("./faces.vhdr", .recording = "1")
# load multiple subjects using purrr::map, extracting subject IDs from file names
faces_list <- purrr::map(list.files("./", "vhdr"), ~
read_vhdr(.x))
faces <- bind(faces_list)
} # }