is.negative {schoolmath}R Documentation

check wether numbers of a vector are negative

Description

This function checks wether the numbers of a vector are negative. It returns TRUE/FALSE

Usage

is.negative(x)

Arguments

x A number or vector to be checked

Author(s)

Joerg Schlarmann

See Also

is.positive is.real.positive

Examples


is.negative(3)  # this will return FALSE
is.negative(-2)  # this will return TRUE

x <- c(-1, -2, 3.02, 4, -5.2, 6, -7)
is.negative(x)


[Package schoolmath version 0.2 Index]