is_one_string_that_is_a_number: General function to create a distribution.

View source: R/is_one_string_that_is_a_number.R

is_one_string_that_is_a_numberR 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")

ropensci/beautier documentation built on July 9, 2024, 6:14 a.m.