R/num_comma.R

Defines functions num_comma

Documented in num_comma

#' num_comma
#'
#' A shortcut for converting a string with numeric values separated comma into a proper numeric column
#' @param x Your data object - column or vector
#' @export

num_comma <- function(x) {

  x <- as.numeric(gsub(',','',x,fixed=TRUE))

return(x)
}
neugelb/neugelbtools documentation built on July 7, 2020, 1:17 a.m.