is.decimal {schoolmath}R Documentation

check wether a vector contains numbers with decimal places

Description

This function checks, wether a vector contains numbers with decimal places. It returns TRUE or FALSE

Usage

is.decimal(x)

Arguments

x a number or vector to be checked

Author(s)

Joerg Schlarmann

See Also

is.whole

Examples


is.decimal(3)    # this will return FALSE
is.decimal(2.01) # this will return TRUE

x <- c(1,2,3,4,5.5, 6.03, 23.07)
is.decimal(x)


[Package schoolmath version 0.2 Index]