| ben-aaron188 | 287b30b | 2022-09-11 16:46:37 +0200 | [diff] [blame] | 1 | #' Convert character vector of numeric values into a numeric vector |
| 2 | #' | ||||
| 3 | #' @description | ||||
| 4 | #' Converts a character vector of numeric values into a numeric vector | ||||
| 5 | #' @param x a character vector of numeric values | ||||
| 6 | #' | ||||
| 7 | #' @return A numeric vector | ||||
| 8 | #' @examples | ||||
| 9 | #' to_numeric('12312') | ||||
| 10 | #' @export | ||||
| 11 | to_numeric = function(x){ | ||||
| 12 | proxy = as.numeric(as.character(x)) | ||||
| 13 | return(proxy) | ||||
| 14 | } | ||||