R/to.numeric.R

Defines functions to.numeric

Documented in to.numeric

#' Change to Numeric Form
#'
#' @param x vector
#'
#' @return numeric data
#' @export
#'
#' @examples
#' x=c(1,2,3)
#' to.factor(x) <- 1
#' to.numeric(x)
to.numeric <- function(x){
    as.numeric(as.character(x))
}

Try the fastStat package in your browser

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

fastStat documentation built on Jan. 13, 2021, 7:32 a.m.