R/slashTerms.R

slashTerms <-
structure(function (x) 
{
    if (!("/" %in% all.names(x))) 
        return(x)
    if (x[[1]] != as.name("/")) 
        stop("unparseable formula for grouping factor")
    list(slashTerms(x[[2]]), slashTerms(x[[3]]))
}, source = c("function (x) ", "{", "    if (!(\"/\" %in% all.names(x))) ", 
"        return(x)", "    if (x[[1]] != as.name(\"/\")) ", "        stop(\"unparseable formula for grouping factor\")", 
"    list(slashTerms(x[[2]]), slashTerms(x[[3]]))", "}"))

Try the frailtyHL package in your browser

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

frailtyHL documentation built on Dec. 1, 2019, 1:25 a.m.