StrIsNumeric {DescTools} | R Documentation |
Check whether a string does only contain numeric data.
StrIsNumeric(x)
x |
a character vector |
a logical vector with the same dimension as x
Andri Signorell <andri@signorell.net>
Other string functions, e.g. StrTrunc
x <- c("123", "-3.141", "foobar123")
StrIsNumeric(x)