R/to_n.R

#' Convert variable to numeric
#'
#' @param x A string to be converted
#' @return A numeric
#' @examples
#' to_n("10")

to_n <- function (x) {
  as.numeric(as.character(x))
}
kemacdonald/kmetR documentation built on May 17, 2019, 12:14 p.m.