R/to.numeric-set.R

Defines functions `to.numeric<-`

#' Change to Numeric Form
#'
#' @param x vector
#' @param value anything, which will be ignored
#'
#' @return numeric data
#' @export
#'
#' @examples
#' x=c(1,2,3)
#' to.factor(x) <- 1
#' to.numeric(x) <- 1
`to.numeric<-` <- function(x,value){
    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.