R/facToNum.R

Defines functions facToNum

Documented in facToNum

#' Coerse Factor to Numeric
#'
#' @param x a factor
#' @return The factor's names as numerics.
#' @note This is simply a shorthand for a standard converstion to numeric.
facToNum <- function(x) {
    as.numeric(as.character(x))
}
mattgarber4/myUtils documentation built on Dec. 13, 2020, 12:54 p.m.