glue_neuropsych_results: Extract and glue neuropsych text

View source: R/text.R

glue_neuropsych_resultsR Documentation

Extract and glue neuropsych text

Description

This function filters a dataframe based on a specified condition, concatenates all of the columns into a single string, and writes the result to a file.

Usage

glue_neuropsych_results(df, filter, result, file)

Arguments

df

A dataframe from which data is to be filtered and concatenated.

filter

A character vector or list specifying the filter condition for the 'scale' column of the dataframe.

result

This parameter appears to be unused and can potentially be removed.

file

A character string specifying the path to the output file where the concatenated text will be saved, default is '_raw_text.qmd'.

Details

This function uses dplyr for data manipulation, glue for data concatenation, and purrr for functional programming.

Value

The name of the file to which the result was written, useful for passing the file to other functions.


jtrampush/npsych.data documentation built on Feb. 25, 2025, 12:30 a.m.