equalFormulas: Check if two formulas are equal

View source: R/misc.R

equalFormulasR Documentation

Check if two formulas are equal

Description

Check if two formulas are equal by evaluating the formulas and extracting terms

Usage

equalFormulas(formula1, formula2)

Arguments

formula1

first formula

formula2

second formula

Value

boolean value indciating of formulas are equivalent

Examples


# These formulas are equivalent
formula1 <- ~ Size + 1
formula2 <- ~ 1 + Size

dreamlet:::equalFormulas(formula1, formula2)


GabrielHoffman/dreamlet documentation built on Oct. 29, 2024, 4:04 a.m.