read_ar_file: Read ERP data from one AR file

View source: R/EMEGShelper.R

read_ar_fileR Documentation

Read ERP data from one AR file

Description

This function reads data from one AR file that come from EMEGS.

Usage

read_ar_file(
  path_to_ar = NULL,
  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

path_to_ar

The path to the AR file

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

Value

Returns a dataframe of the ERP data extracted from an AR file

Author(s)

Andrew H Farkas, andrewhfarkas at g mail dot com


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