is_one_double: Determines if the argument is a double

View source: R/is_one_double.R

is_one_doubleR Documentation

Determines if the argument is a double

Description

Determines if the argument is a double

Usage

is_one_double(x)

Arguments

x

the object to be determined of if it is one double

Value

TRUE if the argument is one floating point value, FALSE otherwise

Author(s)

Richèl J.C. Bilderbeek

Examples

check_empty_beautier_folder()

# TRUE
is_one_double(314)
is_one_double(0)
is_one_double(-314)
is_one_double(3.14)

# FALSE
is_one_double(NULL)
is_one_double(NA)
is_one_double(Inf)
is_one_double("nonsense")
is_one_double(is_one_double)
is_one_double(c())
is_one_double(c(1, 2))

check_empty_beautier_folder()

richelbilderbeek/beastscriptr documentation built on April 9, 2024, 2:28 p.m.