R/as.double.lfactor.R

#' @method as.double lfactor
#' @export
as.double.lfactor <- function(x, ...) {
  as.double(as.character(switchllevels(x)))
}

Try the lfactors package in your browser

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

lfactors documentation built on May 2, 2019, 8:29 a.m.