gentle_as_numeric.Rd
transforms all numeric strings to numbers keeping non-numeric
gentle_as_numeric(chr_vector)
chr_vector | character vector or list |
---|
list with numerics and character 1d objects
transform all numeric strings to numbers keeping non-numeric, returns a list.
#> [[1]] #> [1] 5 #> #> [[2]] #> [1] "ggg" #> #> [[3]] #> [1] "'sss'" #>