concatenate_results: Concatenate Results

View source: R/text.R

concatenate_resultsR Documentation

Concatenate Results

Description

This function takes a data frame as input and adds a summary column to it. The summary column contains a concatenated string that describes the patient's score, range, percentile, and classification.

Usage

concatenate_results(df)

Arguments

df

A data frame containing the patient's scores and related information.

Value

A character vector containing the concatenated summary strings.

Examples

df <- data.frame(
  scale = c("IQ", "Memory"),
  score = c(100, 80),
  range = c("Above Average", "Below Average"),
  percentile = c(75, 25),
  ci_95 = c("[95, 105]", "[75, 85]"),
  description = c("intelligence", "memory")
)
concatenate_results(df)


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