is_one_string_that_is_a_number {beautier}R Documentation

General function to create a distribution.

Description

General function to create a distribution.

Usage

is_one_string_that_is_a_number(x)

Arguments

x

the object that may be one string that may be a number

Value

TRUE is 'x' is one string that is a number

Author(s)

Richèl J.C. Bilderbeek

Examples

# TRUE
is_one_string_that_is_a_number("3.14")

# FALSE
is_one_string_that_is_a_number(c("3.14", "42"))
is_one_string_that_is_a_number("")
is_one_string_that_is_a_number(42)
is_one_string_that_is_a_number("nonsense")

[Package beautier version 2.6.11 Index]