R/trace_formula.R
safe_convert_numeric.Rd
Helper function to check an atomic string and convert to numeric if it contains a legal number.
safe_convert_numeric(x)
character string
Input formatted as character string or numeric
safe_convert_numeric("AS20-BC2") #> [1] "AS20-BC2" safe_convert_numeric("10.5") #> [1] 10.5