Skip to contents

Return TRUE if the value is negative.

Usage

is_negative(x)

Arguments

x

A numeric vector

Value

A boolean vector with the return from the condition check.

Examples


is_negative(4)
#> [1] FALSE

is_negative(-4)
#> [1] TRUE