R/switchllevels.R

switchllevels <- function(x) {
  factor(x, levels=levels(x), labels=llevels(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.