R/unLexis.R

Defines functions unLexis

Documented in unLexis

unLexis <-
function(Lx)
{
if (!inherits(Lx, "Lexis")) stop("Not a Lexis object")
attr(Lx, "time.scales") <- NULL
attr(Lx, "time.since") <- NULL
attr(Lx, "breaks") <- NULL
attr(Lx, "class") <- setdiff(attr(Lx, "class"), "Lexis")
Lx
}

Try the Epi package in your browser

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

Epi documentation built on Oct. 1, 2024, 5:07 p.m.