zerofind: Does the range of the input contain 0?

View source: R/zerofind.R View source: R/plot.fd.R

zerofindR Documentation

Does the range of the input contain 0?

Description

Returns TRUE if range of the argument includes 0 and FALSE if not.

Usage

  zerofind(fmat)

Arguments

fmat

An object from which 'range' returns two numbers.

Value

A logical value TRUE or FALSE.

See Also

range

Examples

zerofind(1:5)
# FALSE
zerofind(0:3)
# TRUE 

fda documentation built on May 31, 2023, 9:19 p.m.