CheckVals: Score a set of items to create overall scale score

View source: R/scoring.R

CheckValsR Documentation

Score a set of items to create overall scale score

Description

This function creates a single scale score from a data frame, reversing as needed.

Usage

CheckVals(data, okay, na.rm = TRUE)

Arguments

data

The data to check

okay

A vector of okay or acceptable values

na.rm

Logical whether to remove missing values or not. Defaults to TRUE

Value

TRUE if all values are okay, otherwise an error


JWileymisc documentation built on Oct. 5, 2023, 5:06 p.m.