Learn R Programming

tester (version 0.2.0)

is_decimal: Is decimal

Description

Test if is a decimal number

Usage

is_decimal(x)

Arguments

x

an R object

Details

decimal is any number in the intervals (-1,0) and (0,1)

See Also

is_integer

Examples

Run this code
is_decimal(0.01) # TRUE
is_decimal(-0.01) # TRUE
is_decimal(0) # FALSE
is_decimal(1) # FALSE
is_decimal(runif(5))
is_decimal(rnorm(5))

M = matrix(seq(-2, 2, length.out=10), 5, 2)
is_decimal(M)

Run the code above in your browser using DataLab