dropCovFromFormla
adds drops some covariates from a
formula; covs should be a list of variable names
dropCovFromFormla(covs, formla)
should be a list of variable names
which formula to drop covariates from
formula
formla <- y ~ x + w + z
dropCovFromFormla(list("w","z"), formla)
#> y ~ x
#> <environment: 0x5636a0a358e8>
dropCovFromFormla("z", formla)
#> y ~ x + w
#> <environment: 0x5636a0b9db98>