read_ar_file | R Documentation |
This function reads data from one AR file that come from EMEGS.
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
)
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 |
Returns a dataframe of the ERP data extracted from an AR file
Andrew H Farkas, andrewhfarkas at g mail dot com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.