checkValue_old: Compare observed values with the values listed (presumably...

View source: R/variableKey.R

checkValue_oldR Documentation

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(s)

Paul Johnson <pauljohn@ku.edu>


kutils documentation built on Sept. 17, 2023, 5:06 p.m.