
Check whether a string does only contain numeric data.
StrIsNumeric(x)
a character vector
a logical vector with the same dimension as x
Other string functions, e.g. StrTrunc
# NOT RUN {
x <- c("123", "-3.141", "foobar123")
StrIsNumeric(x)
# }
Run the code above in your browser using DataLab