is_nested: Checks pairs of Variables for a nested relationship

View source: R/Variable_relationships.R

is_nestedR Documentation

Checks pairs of Variables for a nested relationship

Description

Given two variable names and a data.table, checks if the inner_term is nested in the outer_term, meaning that each level of inner_term is paired with at most 1 level of outer_term. Each level of outer_term may be paired with multiple levels of inner_term.

Usage

is_nested(outer_term, inner_term, data = NULL)

Arguments

outer_term

Term expected to be at the higher level

inner_term

Term that may be nested in outer_term

data

data.frame with columns (minimally) outer_term and inner_term

Value

TRUE or FALSE


deruncie/PLS205_package documentation built on March 25, 2022, 2:29 a.m.