powered by
chop_evenly() chops x into intervals intervals of equal width.
chop_evenly()
x
intervals
chop_evenly(x, intervals, ..., close_end = TRUE)brk_evenly(intervals)tab_evenly(x, intervals, ...)
brk_evenly(intervals)
tab_evenly(x, intervals, ...)
chop_* functions return a factor of the same length as x.
chop_*
factor
brk_* functions return a function to create breaks.
brk_*
function
breaks
tab_* functions return a contingency table().
tab_*
table()
A vector.
Integer: number of intervals to create.
Passed to chop().
chop()
Logical. Close last break at right? (If left is FALSE, close first break at left?)
left
FALSE
chop_evenly() sets close_end = TRUE by default.
close_end = TRUE
Other chopping functions: chop_equally(), chop_fn(), chop_mean_sd(), chop_n(), chop_proportions(), chop_quantiles(), chop_width(), chop(), fillet()
chop_equally()
chop_fn()
chop_mean_sd()
chop_n()
chop_proportions()
chop_quantiles()
chop_width()
fillet()
chop_evenly(0:10, 5)
Run the code above in your browser using DataLab