powered by
Convert strings to numeric if possible, otherwise remains as is.
castNumeric(x)
A string.
A string, converted to numeric if possible.
# NOT RUN { castNumeric("100") # }
Run the code above in your browser using DataLab