Learn R Programming

shortIRT (version 0.1.3)

cut_borders: Cut borders

Description

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

Usage

cut_borders(x)

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

Arguments

x

numeric/integer vector

Examples

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

Run the code above in your browser using DataLab