R/wu_formula.R

Defines functions wu_formula

Documented in wu_formula

#' A formula Function
#'
#' This function allows you to create a formula by an outcome and a vector of predictors.
#' @param 
#' @keywords formula
#' @export


wu_formula <- function(outcome, predictors){
    as.formula(paste0(
        outcome
      , " ~ "
      , paste0(
            predictors
          , sep = ""
          , collapse = "+")))
}
ghowoo/Wu documentation built on June 10, 2022, 3:47 p.m.