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))
}
yikeshu0611/fastStat documentation built on Nov. 18, 2019, 11:23 a.m.