BVA_to_R function but for only one file

one_vhdr(path, filename, var_labs, sep, ERP_list, full_window_bounds)

Arguments

path

Full path to all .vhdr, .vmrk and .dat files. Of the form "path/to/file/" with the final forward slash. If unspecified, defaults to current working directory.

filename

Vhdr filename, full path

var_labs

Variable labels to assign to filename parts separated by underscores e.g. c("subject", "condition").

sep

Separation in the filename e.g. "_"

ERP_list

Named list of ERP components and their lower/upper bounds.

full_window_bounds

Bounds of time window is ms e.g. c(-200, 1198).