Depending on the file format, one of the standard R functions for reading files into R can be used such as read.table or read.csv After the data is loaded, these functions can be used to clean, preprocess, and engineer features from the raw mouse-tracking data.
standardize_cols() — Standardize names/types/unitsconvert_numeric() — Convert quantitative columns to numeric typerm_cases() — Drop invalid participants/screens/empty trajectoriesrm_cases_time() — Drop cases or participants based on time spent on a questionrm_touch_devices() — Remove touch devices by rulemouse_class() — Drop cases based on the number of recorded mouse or touch movement data points per screenmouse_class_col() — Flag cases based on the number of recorded mouse or touch movement data points per screenrm_non_mouse_events() — Remove non-mouse movement eventsrm_resize_events() — Detect and remove resize events. Option to remove trajectory or participantscreen_dims_calculate() — Compute screen width/height from inner+scrolltime_vars_calculate() — Compute Initiation time, response time and move time from timestamps of trajectoriesflag_outliers() — Flag outliers. Option to flag based on data-driven or fixed thresholdsrm_outliers() — Remove outliers based on the flagged observations multiple_traj() — Flag first, last or longest trajectory when there are multiple trajectories per screeninclude_clicks() — Merge click time/location with trajectoriesmp_processing_mt() — Use analysis functions in mousetrap package to get to the final datasetmp_export_dataset() — Export cleaned dataset in long or wide formatsdata <- standardize_colnames(dat_full)screen_dims <- screen_dimension_calculator(data, uas = TRUE)