Learn R Programming

kutils (version 1.73)

checkValue_old: Compare observed values with the values listed (presumably from a variable key).

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

checkValue_old(x, value_old, xname, diagnostic = FALSE)

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

diagnostic

prints messages about variables if TRUE

Author

Paul Johnson <pauljohn@ku.edu>