R/form.add.R

Defines functions form.add

Documented in form.add

#' adds together two formula
#'
#' @param formula1 a formula
#' @param formula2 a formula
#' @returns another formula
#' @importFrom stats formula
#' @keywords internal


form.add <-
function(formula1, formula2){
formula( paste( deparse(formula1,width.cutoff=500), sub("~","+",deparse(formula2,width.cutoff=500))))
}

Try the mreg package in your browser

Any scripts or data that you put into this service are public.

mreg documentation built on Oct. 26, 2023, 5:07 p.m.