powered by
add_cov_to_formula adds some covariates to a formula; covs should be a list of variable names
add_cov_to_formula
add_cov_to_formula(covs, formula)
formula
should be a list of variable names
which formula to add covariates to
ff <- y ~ x add_cov_to_formula(list("w", "z"), ff) ff <- ~x add_cov_to_formula("z", ff)
Run the code above in your browser using DataLab