R/unfactor.R

Defines functions unfactor

unfactor <- function(x){
  tmp <- x
  tmp2 <- as.numeric(levels(tmp)[as.integer(tmp)])
  return(tmp2)
}

Try the blockTools package in your browser

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

blockTools documentation built on Feb. 16, 2023, 7:14 p.m.