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

Description Usage Arguments Value

View source: R/vitality.utils.R

Description

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

Usage

1
  indexFinder(x, val)

Arguments

x

Vector to search

val

Threshold

Value

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


vitality documentation built on May 14, 2018, 1:04 a.m.