zerofind: Does the range of the input contain 0?

Description Usage Arguments Value See Also Examples

View source: R/plot.fd.R

Description

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

Usage

1
  zerofind(fmat, na.rm=TRUE)

Arguments

fmat

An object from which 'range' returns two numbers.

na.rm

logical: TRUE to remove NAs before computing range

Value

A logical value TRUE or FALSE.

See Also

range

Examples

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

fda documentation built on May 2, 2019, 5:12 p.m.