powered by
Check which interval a number belongs to
interval.check(data, input = "Stop", times, fun = "
Vector indicating which element of times that row belongs to. If the row is beyond any element NA is in it's spot.
times
data.frame
character name of column we wish to compare
vector in ascending order where the differences between sequential elements are the intervals
character containing comparator
Jared P. Lander
This function takes in a data.frame with a specified column and compares that to a vector of times
head(cars) interval.check(cars, input="speed", times=seq(min(cars$speed), max(cars$speed), length=10))
Run the code above in your browser using DataLab