R/AllGenerics.R
, R/methods-utils.R
combnCov.Rd
Function for creating combinations of covariates
combnCov(x, ...)
# S4 method for character
combnCov(x)
Character vector of covariates to combine.
Additional arguments.
Returns a character vector of formulae combinations.
combnCov(x = c('a', 'b', 'c'))
#> [1] "~a+b+c" "~b+c" "~a+c" "~c" "~a+b" "~b" "~a"