lowest acceptable value for measurement; does not have to be a number in ycol
max
highest acceptable value for measurement; does not have to be a number in ycol
data.r
prespecified range for y values; must have three columns: 1 - must match values in xcol, 2 - lower range values, 3 - upper range values
tol
tolerance; how much outside of the range (data.r) is acceptable; same units as data in ycol
direction
the direction of the function a choice between increasing 'inc', and decreasing 'dec'
Value
Returns the data matrix with two additional columns. "Decreasing" is a logical vector that is TRUE if the observation decreases, or causes the ID to be non-monotonic. "Outside.Range" is a logical vector that returns TRUE if the observation is outside of the data.r +/- tol range. Any duplicate rows are removed.
Details
The data range (data.r) does not need to have the same number of rows as data; it only needs to include the exact time increments as xcol.