is_negative {tester}R Documentation

Is negative

Description

Test if an object is negative

Usage

  is_negative(x)

Arguments

x

an R object

See Also

is_positive

Examples

is_negative(1)
is_negative(0)
is_negative(-1)
is_negative(iris$Species)
is_negative(iris)
is_negative(list(1, 0, -1, iris))

set.seed(999)
M = matrix(rnorm(12), 4, 3)
is_negative(M)

[Package tester version 0.2.0 Index]