Learn R Programming

ecotoxicology (version 1.0.1)

IsMonotonicallyDecreasing: Determine if a series is monotonically decreasing

Description

Returns TRUE if all proportions are in a monotonically decreasing sequence

Usage

IsMonotonicallyDecreasing(p)

Arguments

p
numeric vector

Value

True is the series is monotonically decreasing

References

Hamilton, m.a., R.c. Russo, and r.v. Thurston, 1977. Trimmed spearman-karber method for estimating median Lethal concentrations in toxicity bioassays. Environ. Sci. Technol. 11(7): 714-719; Correction 12(4):417 (1978).

Examples

Run this code
IsMonotonicallyDecreasing(1:10)
IsMonotonicallyDecreasing(6:2)
IsMonotonicallyDecreasing(c(1,3,2))

Run the code above in your browser using DataLab