powered by
Check whether a string does only contain numeric data.
StrIsNumeric(x)
a logical vector with the same dimension as x
a character vector
Andri Signorell <andri@signorell.net>
Other string functions, e.g. StrTrunc
StrTrunc
x <- c("123", "-3.141", "foobar123") StrIsNumeric(x)
Run the code above in your browser using DataLab