Skip to contents

Add literal item text or clean scale names as attributes to data frame columns, making them readable by data viewers and reporting packages.

Usage

label_hitopsr(data, target = c("items", "scales"), prefix = "HSR_")

Arguments

data

A data frame containing HiTOP-SR items or scales.

target

A string specifying what to label: "items" to label raw item columns with questionnaire text, or "scales" to label computed scale columns.

prefix

An optional string specifying the prefix used on the column names. (default = "HSR_")

Value

A data frame with labeled columns.