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.

References

Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.

See Also

range

Examples

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

fda documentation built on Sept. 30, 2024, 9:19 a.m.