Open drsimonj opened 7 years ago
Many twidlr methods involve setting and getting a formula as an attribute. It's a bit messy in base code. Eg...
attr(object, "formula")
Instead, create wrapper functions like set_formula and get_formula. Eg...
set_formula
get_formula
get_formula <- function(object) attr(object, "formula")
Many twidlr methods involve setting and getting a formula as an attribute. It's a bit messy in base code. Eg...
Instead, create wrapper functions like
set_formula
andget_formula
. Eg...