read_ar_files: Read ERP data from multiple AR files

View source: R/EMEGShelper.R

read_ar_filesR Documentation

Read ERP data from multiple AR files

Description

This function reads data from AR files that come from EMEGS.

Usage

read_ar_files(
  data_folders = NULL,
  patterns = NULL,
  search_subfolders = F,
  search_only_subfolders = F,
  extract_channels = NULL,
  baseline_pts = NULL,
  select_time_points = NULL,
  average_timepoints = F,
  average_channels = F,
  include_channel_name = F,
  include_path_name = F,
  include_file_name = F
)

Arguments

data_folders

select multiple data folders to search

patterns

One or more patterns to find files

search_only_subfolders

Argument to specify if the files in the parent folder should not be searched

extract_channels

Choose which channels to extract, must know numeric index (can be found in Emegs2d)

baseline_pts

Select baseline points to baseline the channels as they read in. Ex: c(0:50) which is the first 51 data points

select_time_points

Select time points to keep. Works after baselining. You select sample points not in millisecond. You will need to know your samplerate and scene onset

average_timepoints

Logical argument if selected time points should be averaged

average_channels

Logical argument to average selected channels together

include_channel_name

Logical argument for whether to put channel names in output dataframe

include_path_name

Logical argument for whether to put path name in output dataframe

include_file_name

Logical argument for whether to put file name in output dataframe

search_subfolder

Logical argument to specify if subfolder should be searched

Value

Returns a dataframe of the ERP data extracted from AR files

Author(s)

Andrew H Farkas, andrewhfarkas at g mail dot com


AndrewHFarkas/EMEGShelper documentation built on Oct. 20, 2023, 9:57 a.m.