Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Paul Johnson <pauljohn@ku.edu>


kutils

Project Management Tools

v1.70
GPL-2
Authors
Paul Johnson [aut, cre], Benjamin Kite [aut], Charles Redmon [aut], Jared Harpole [ctb], Kenna Whitley [ctb], Po-Yi Chen [ctb], Shadi Pirhosseinloo [ctb]
Initial release
2020-04-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.