StrIsNumeric: Does a String Contain Only Numeric Data

View source: R/DescTools.r

StrIsNumericR Documentation

Does a String Contain Only Numeric Data

Description

Check whether a string does only contain numeric data.

Usage

StrIsNumeric(x)

Arguments

x

a character vector

Value

a logical vector with the same dimension as x

Author(s)

Andri Signorell <andri@signorell.net>

See Also

Other string functions, e.g. StrTrunc

Examples

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

DescTools documentation built on Sept. 26, 2024, 1:07 a.m.