%% Import data from text file
% Script for importing data from the following text file:
%
%    filename: /Users/riccihannah/Google Drive/Online_Stop_Signal/jspsych-psychophysics-master/Data/myStopData_MousePos_test_2.csv
%
% Auto-generated by MATLAB on 08-Mar-2021 16:22:07

%% Setup the Import Options
opts = delimitedTextImportOptions("NumVariables", 38);

% Specify range and delimiter
opts.DataLines = [1, Inf];
opts.Delimiter = ",";

% Specify column names and types
opts.VariableNames = ["rt", "response_type", "key_press", "avg_frame_time", "center_x", "center_y", "CueType", "trial_type", "trial_index", "time_elapsed", "internal_node_id", "browser_name", "browser_version", "os_name", "os_version", "screen_resolution", "window_resolution", "click_x", "click_y", "CueDirection", "TrialType", "Staircase", "Block", "Xpos", "Ypos", "IsHome", "ClickX", "ClickY", "TooSoon", "Jitter", "ReactTime", "MoveTime", "TargetHit", "MouseX", "MouseY", "MouseTime", "Outcome", "StopSignalDelay"];
opts.VariableTypes = ["categorical", "categorical", "categorical", "double", "double", "double", "categorical", "categorical", "double", "double", "string", "categorical", "double", "categorical", "categorical", "categorical", "categorical", "double", "double", "categorical", "categorical", "categorical", "double", "double", "double", "categorical", "double", "double", "categorical", "double", "double", "double", "categorical", "double", "double", "string", "categorical", "double"];
opts = setvaropts(opts, [11, 36], "WhitespaceRule", "preserve");
opts = setvaropts(opts, [34, 35], "TrimNonNumeric", true);
opts = setvaropts(opts, [34, 35], "ThousandsSeparator", ",");
opts = setvaropts(opts, [1, 2, 3, 7, 8, 11, 12, 14, 15, 16, 17, 20, 21, 22, 26, 29, 33, 36, 37], "EmptyFieldRule", "auto");
opts.ExtraColumnsRule = "ignore";
opts.EmptyLineRule = "read";

% Import the data
myStopDataMousePostest2 = readtable("/Users/riccihannah/Google Drive/Online_Stop_Signal/jspsych-psychophysics-master/Data/myStopData_MousePos_test_2.csv", opts);


%% Clear temporary variables
clear opts