round_and_bound_scores: Rounds scores to integers and constrains them within...

View source: R/sim.questionnaire.R

round_and_bound_scoresR Documentation

Rounds scores to integers and constrains them within specified min and max bounds.

Description

Rounds scores to integers and constrains them within specified min and max bounds.

Usage

round_and_bound_scores(scores, min_val, max_val)

Arguments

scores

A numeric vector of scores.

min_val

Minimum allowable score.

max_val

Maximum allowable score.

Value

A numeric vector of rounded and bounded scores.


ccamp83/mu documentation built on July 4, 2025, 6:20 p.m.