indexFinder function

Finds the first value of a vector that is less than a value.

Finds the first value of a vector that is less than a value.

For use in the primary vitality model fitting functions in this package. See package documentation.

indexFinder(x, val)

Arguments

  • x: Vector to search
  • val: Threshold

Returns

Gives the index of the first value of x that is <= val. returns -1 if no value satisfies the condition

  • Maintainer: David J. Sharrow
  • License: GPL (>= 2)
  • Last published: 2018-05-13

Useful links