zerofind {fda}R 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, 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

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



[Package fda version 2.4.8 Index]