is_distinct: Check if Given Variable Combinations in a Data Frame are...

View source: R/fe_stand_helpers_validation.R

is_distinctR Documentation

Check if Given Variable Combinations in a Data Frame are Distinct

Description

Check if Given Variable Combinations in a Data Frame are Distinct

Usage

is_distinct(x, combinations)

Arguments

x

a data.frame

combinations

a list of character vectors, where each describes a variable combination in x to be checked for being distinct

Value

A list with two elements: 1) rqmt_ok which is TRUE if the requirement is fulfilled and FALSE otherwise; 2) err_message, the body of an error message to be used by the calling function (mentions all problematic elements)


ForestElementsR documentation built on April 3, 2025, 7:47 p.m.