interval.check: interval.check

Description Usage Arguments Details Value Author(s) Examples

Description

Check which interval a number belongs to

Usage

1
interval.check(data, input = "Stop", times, fun = "<=")

Arguments

data

data.frame

input

character name of column we wish to compare

times

vector in ascending order where the differences between sequential elements are the intervals

fun

character containing comparator

Details

This function takes in a data.frame with a specified column and compares that to a vector of times

Value

Vector indicating which element of times that row belongs to. If the row is beyond any element NA is in it's spot.

Author(s)

Jared P. Lander

Examples

1
2
head(cars)
interval.check(cars, input="speed", times=seq(min(cars$speed), max(cars$speed), length=10))

useful documentation built on May 1, 2019, 9:21 p.m.