read_vhdr | R Documentation |
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
)
file |
A vhdr file in a folder that contains a .vmrk and .dat files |
.sep |
Segment separation marker. By default: |
.zero |
Time zero marker. By default: |
.recording |
Recording name ( |
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()
## Not run:
# 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.