Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

DescTools (version 0.99.47)

StrIsNumeric: Does a String Contain Only Numeric Data

Description

Check whether a string does only contain numeric data.

Usage

StrIsNumeric(x)

Value

a logical vector with the same dimension as x

Arguments

x

a character vector

Author

Andri Signorell <andri@signorell.net>

See Also

Other string functions, e.g. StrTrunc

Examples

Run this code
x <- c("123", "-3.141", "foobar123")
StrIsNumeric(x)

Run the code above in your browser using DataLab