Skip to contents

Package overview

santoku santoku-package
A versatile cutting tool for R

Chopping functions

Cut a vector into intervals

chop() kiru() tab()
Cut data into intervals
chop_equally() brk_equally() tab_equally()
Chop equal-sized groups
chop_evenly() brk_evenly() tab_evenly()
Chop into equal-width intervals
chop_fn() brk_fn() tab_fn()
Chop using an existing function
chop_mean_sd() brk_mean_sd() tab_mean_sd()
Chop by standard deviations
chop_n() brk_n() tab_n()
Chop into fixed-sized groups
chop_pretty() brk_pretty() tab_pretty()
Chop using pretty breakpoints
chop_proportions() brk_proportions() tab_proportions()
Chop into proportions of the range of x
chop_quantiles() chop_deciles() brk_quantiles() tab_quantiles() tab_deciles()
Chop by quantiles
chop_width() brk_width() tab_width()
Chop into fixed-width intervals
brk_default()
Create a standard set of breaks
brk_manual()
Create a breaks object manually
brk_width(<Duration>)
Equal-width intervals for dates or datetimes

Label functions

Specify how to label the chopped intervals

lbl_dash()
Label chopped intervals like 1-4, 4-5, ...
lbl_discrete()
Label discrete data
lbl_endpoints() lbl_endpoint()
Label chopped intervals by their left or right endpoints
lbl_glue()
Label chopped intervals using the glue package
lbl_intervals()
Label chopped intervals using set notation
lbl_midpoints()
Label chopped intervals by their midpoints
lbl_seq()
Label chopped intervals in sequence

Miscellaneous

Miscellaneous documentation

format(<breaks>) print(<breaks>) is.breaks()
Class representing a set of intervals
exactly()
Define singleton intervals explicitly
fillet()
Chop data precisely (for programmers)
non-standard-types
Tips for chopping non-standard types
percent()
Simple percentage formatter