fda (version 2.4.8)

zerofind: 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

Run this code
# NOT RUN {
zerofind(1:5)
# FALSE
zerofind(0:3)
# TRUE 


# }

Run the code above in your browser using DataCamp Workspace