importOptions: Import options for importBVdat

Description Usage Arguments Value

View source: R/erp_preprocess.R

Description

importOptions allows to set the raw data importation parameters

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
importOptions(
  eeg_ext = "dat",
  marker_ext = "vmrk",
  info_ext = "vhdr",
  marker_skip = 14,
  marker_segment = "Target",
  marker_badcat = "Bad Interval",
  marker_badstim = "resp_false",
  marker_keepstim = "*",
  marker_badchan = c("badchan_start", "badchan_stop"),
  marker_time0 = "Time 0",
  segment_dpoints = (-100):1023,
  marker_regexp = TRUE,
  marker_ignorecase = TRUE,
  marker_header = FALSE,
  marker_fill = TRUE,
  marker_asis = TRUE,
  marker_sep = ","
)

Arguments

eeg_ext

character value, the extension of the segmented EEG dataset file (default: "dat")

marker_ext

character value, the extension of the raw marker file (default: "vmrk")

info_ext

character value, the extension of the information file (default: "vhdr")

marker_skip

numeric value; number of rows to be skipped while importing the marker file (default: 14)

marker_segment

character vector; name(s) of stimuli defining the the segments (default: "Target")

marker_badcat

character string(s) identifying bad segments in the 1st column of the marker file (default: "Bad Interval")

marker_badstim

character string(s) identifying bad stimuli or responses in the 2nd column of the marker file (default: "resp_false")

marker_keepstim

character vector identifying which stimuli or responses should be kept by checking the 2nd column of the marker file (default: "*")

marker_badchan

character vector of length 1 or 2; markers identifying bad intervals of channels. If marker_badchan has only one element, "_start" and "_stop" are automatically appended to the end of the string.

marker_time0

character string identifying the marker name at time 0 in the imported EEG dataset

segment_dpoints

numeric vector of data point indices defining a segment (default: -100:1023)

marker_regexp

logical value; should marker_segment/badcat/.../time0 strings be handled as regular expressions (default) or treated as they are

marker_ignorecase

logical value; should the case of marker_segment/ .../time0 definitions be ignored (default)

marker_header, marker_fill, marker_asis, marker_sep

parameters to be passed to read.table while importing the marker file

Value

A list with named parameters


tdeenes/eegR documentation built on April 19, 2021, 4:17 p.m.