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 March 19, 2024, 3:07 a.m.