Skip to content

Instantly share code, notes, and snippets.

@kgilbert-cmu
kgilbert-cmu / formulaTools.R
Last active November 3, 2020 00:17
Formulas in R are hard to manipulate
# Kevin Gilbert
# CMU CS '14
# Formulas in R are hard to manipulate, and cannot have string functions applied to them. This fixes that.
# ---------- ---------- ---------- ---------- ----------
# given two formulas, merge their predictors