View source: R/cut_numeric_leftclosed.R
cut_numeric_leftclosed | R Documentation |
cut()
with labels = FALSE
, right = FALSE
Integer codes are returned instead of a factor. Intervals closed on left and open on right.
cut_numeric_leftclosed(x, breaks)
x, breaks |
same as |
An integer vector of level codes. As with cut
, values which
fall outside the range of breaks are coded as NA (as are NaN and NA
values).
cut
x <- 1:10
y <- cut_numeric_leftclosed(x, breaks = c(0, 2, 7))
cbind(x, y)
z <- cut_numeric_leftclosed(x, breaks = c(1, 2, 7, Inf))
cbind(x, z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.