get_intervals: Given breaks, return intervals in which times vector falls

Description Usage Arguments Value See Also Examples

Description

Given breaks, return intervals in which times vector falls

Usage

1
get_intervals(brks, x, ...)

Arguments

brks

Vector of values for which interval information should be returned.

x

A numeric vector of cut points in which the follow-up should be partitioned in or object of class ped.

...

Further arguments passed to findInterval.

Value

A data.frame containing information on intervals in which values of x fall.

See Also

findInterval int_info

Examples

1
2
3
4
5
set.seed(111018)
brks <- c(0, 4.5, 5, 10, 30)
int_info(brks)
x <- runif(3, 0, 30)
get_intervals(brks, x, left.open=TRUE)

adibender/pam documentation built on May 10, 2019, 5:54 a.m.