powered by
Check which interval a number belongs to
interval.check(data, input = "Stop", times, fun = "
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
Vector indicating which element of times that row belongs to. If the row is beyond any element NA is in it's spot.
times
This function takes in a data.frame with a specified column and compares that to a vector of times
# NOT RUN { 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