assert_valid_keys: Assert that keys are valid

View source: R/diffdf.R

assert_valid_keysR Documentation

Assert that keys are valid

Description

Utility function to check that user provided "keys" aren't listed as a problem variable of the current list of issues.

Usage

assert_valid_keys(COMPARE, KEYS, component, msg)

Arguments

COMPARE

(list)
A named list of which each element is a data.frame with the column VARIABLE

KEYS

(character)
name of key variables to check to make sure they don't contain any issues

component

(character)
name of the component within COMPARE to check against

msg

(character)
error message to print if any of KEYS are found within COMPARE[component]$VARIABLE


diffdf documentation built on Sept. 30, 2024, 9:25 a.m.