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 April 11, 2022, 5:08 p.m.