is_aliased: Checks pairs of Variables for a aliased relationship

View source: R/Variable_relationships.R

is_aliasedR Documentation

Checks pairs of Variables for a aliased relationship

Description

Given two variable names and a data.table, checks if the term1 is aliased with the term2. Two terms are aliased if there levels match 1:1. Each level of term1 is paired with exactly 1 level of term2.

Usage

is_aliased(term1, term2, data)

Arguments

term1,

One Variable name of interest.

term2

A second Variable name of interest.

data

data.frame with columns (minimally) term1 and term2

Value

TRUE or FALSE


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