cut_borders: Cut borders

View source: R/cut_borders.R

cut_bordersR Documentation

Cut borders

Description

Extract the limits of the intervals obtained from sub setting a vector

Usage

cut_borders(x)

Arguments

x

numeric/integer vector

Value

A data frame with two columns. The first column contains the lower bounds of each interval. The second column contains the upper bound of each interval

Examples

x <- seq(-3, 3, length = 5)
groups <- cut(x, 5, include.lowest = TRUE)
boundaries <- cut_borders(groups)

shortIRT documentation built on Sept. 9, 2025, 5:33 p.m.