make_scale_total: Compute Scale Total Score

View source: R/make_scale_total.R

make_scale_totalR Documentation

Compute Scale Total Score

Description

Computes the total score for a psychometric scale by summing specified numeric variables. The resulting total score is appended as a new column to the input data frame. Missing values are handled using 'na.rm = TRUE'.

Usage

make_scale_total(data, vars, new_var)

Arguments

data

A data frame.

vars

A character vector of column names to be summed.

new_var

A single character string specifying the name of the new total score column.

Value

The input data frame with one additional numeric column.


scaledescr documentation built on April 11, 2026, 5:07 p.m.