load_data: Read/Load Neuropsych Eval CSV Files

View source: R/wrangle_data.R

load_dataR Documentation

Read/Load Neuropsych Eval CSV Files

Description

This function reads .csv files of patient data and writes four different files of the same data that are categorized by neuropsychological test type.

Usage

load_data(file_path, output_dir = here::here(), return_data = FALSE)

Arguments

file_path

character, Name of patient file path

output_dir

character, Directory to write output files (default: current working directory)

return_data

logical, Whether to return the processed data as a list (default: FALSE)

Value

If return_data is TRUE, returns a list with 4 elements (neuropsych, neurocog, neurobehav, validity). Otherwise, returns NULL and writes CSV files.


jtrampush/npsych.data documentation built on June 12, 2025, 2:20 p.m.