R/convert.R

Defines functions f2n

Documented in f2n

#' Convert factor into numeric
#'
#' @param f a factor that contains values that can be converted with as.numeric

f2n <- function(f) as.numeric(levels(f))[f]
slamballais/slmisc documentation built on May 19, 2019, 6:23 p.m.