interval.check: interval.check

View source: R/intervals.r

interval.checkR Documentation

interval.check

Description

Check which interval a number belongs to

Usage

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


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

useful documentation built on Oct. 24, 2023, 9:07 a.m.