Learn R Programming

kutils (version 0.93)

checkValues: Compare observed values with the values listed

Description

This is purely diagnostic. It prints warnings in either of 2 cases. 1) observed data has values that are not in the value_old, or 2) that value_old has values that are not in the data.

Usage

checkValues(x, value_old, xname)

Arguments

x
a variable, either character or factor
value_old
a vector of old values for which we are checking
xname
character string to use for x's name when printing output