Package: santoku 1.2.1

santoku: A Versatile Cutting Tool

A tool for cutting data into intervals. Allows singleton intervals. Always includes the whole range of data by default. Flexible labelling. Convenience functions for cutting by quantiles etc. Handles dates, times, units and other vectors.

Authors:David Hugh-Jones [aut, cre], Daniel Possenriede [ctb]

santoku_1.2.1.tar.gz
santoku_1.2.1.zip(r-4.7)santoku_1.2.1.zip(r-4.6)santoku_1.2.1.zip(r-4.5)
santoku_1.2.1.tgz(r-4.6-x86_64)santoku_1.2.1.tgz(r-4.6-arm64)santoku_1.2.1.tgz(r-4.5-x86_64)santoku_1.2.1.tgz(r-4.5-arm64)
santoku_1.2.1.tar.gz(r-4.7-arm64)santoku_1.2.1.tar.gz(r-4.7-x86_64)santoku_1.2.1.tar.gz(r-4.6-arm64)santoku_1.2.1.tar.gz(r-4.6-x86_64)
santoku_1.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
santoku/json (API)
NEWS

# Install 'santoku' in R:
install.packages('santoku', repos = c('https://hughjonesd.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/hughjonesd/santoku/issues

Pkgdown/docs site:https://hughjonesd.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

8.76 score 147 stars 2 packages 124 scripts 1.1k downloads 63 exports 7 dependencies

Last updated from:da7bdc3a65 (on v1.2.1). Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK189
linux-devel-x86_64OK191
source / vignettesOK182
linux-release-arm64OK169
linux-release-x86_64OK187
macos-release-arm64OK106
macos-release-x86_64OK332
macos-oldrel-arm64OK114
macos-oldrel-x86_64OK247
windows-develOK141
windows-releaseOK188
windows-oldrelOK165
wasm-releaseOK148

Exports:brk_defaultbrk_equallybrk_evenlybrk_fnbrk_manualbrk_mean_sdbrk_nbrk_prettybrk_proportionsbrk_quantilesbrk_spikesbrk_widthchopchop_decileschop_equallychop_evenlychop_fnchop_mean_sdchop_nchop_prettychop_proportionschop_quantileschop_spikeschop_widthdissectexactlyfilletis.breakskirulbl_dashlbl_datelbl_datetimelbl_discretelbl_endpointlbl_endpointslbl_gluelbl_intervalslbl_manuallbl_midpointslbl_seqpercentsantoku_cast_common.Datesantoku_cast_common.defaultsantoku_cast_common.doublesantoku_cast_common.hexmodesantoku_cast_common.integer64santoku_cast_common.octmodesantoku_cast_common.POSIXctsantoku_cast_common.tssantoku_cast_common.zootabtab_decilestab_dissecttab_equallytab_evenlytab_fntab_mean_sdtab_ntab_prettytab_proportionstab_quantilestab_spikestab_width

Dependencies:assertthatcligluelifecycleRcpprlangvctrs

Introduction to santoku

Rendered fromsantoku.Rmdusingknitr::rmarkdownon May 24 2026.

Last update: 2026-04-28
Started: 2019-08-30

What's new in santoku 0.9.0

Rendered fromwhats-new-in-0-9-0.Rmdusingknitr::rmarkdownon May 24 2026.

Last update: 2022-11-01
Started: 2022-11-01

Readme and manuals

Help Manual

Help pageTopics
A versatile cutting tool for R: package overview and optionssantoku-package santoku
Class representing a set of intervalsbreaks-class format.breaks is.breaks print.breaks
Create a standard set of breaksbrk_default
Create a 'breaks' object manuallybrk_manual
Equal-width intervals for dates or datetimesbrk_width-for-datetime brk_width.Duration
Cut data into intervalschop kiru tab
Chop equal-sized groupsbrk_equally chop_equally tab_equally
Chop into equal-width intervalsbrk_evenly chop_evenly tab_evenly
Chop using an existing functionbrk_fn chop_fn tab_fn
Chop by standard deviationsbrk_mean_sd chop_mean_sd tab_mean_sd
Chop into fixed-sized groupsbrk_n chop_n tab_n
Chop using pretty breakpointsbrk_pretty chop_pretty tab_pretty
Chop into proportions of the range of xbrk_proportions chop_proportions tab_proportions
Chop by quantilesbrk_quantiles chop_deciles chop_quantiles tab_deciles tab_quantiles
Chop common values into singleton intervalsbrk_spikes chop_spikes tab_spikes
Chop into fixed-width intervalsbrk_width brk_width.default chop_width tab_width
Cut data into intervals, separating out common valuesdissect tab_dissect
Define singleton intervals explicitlyexactly
Chop data precisely (for programmers)fillet
Label chopped intervals like 1-4, 4-5, ...lbl_dash
Label dates and datetimeslbl_date lbl_datetime
Label discrete datalbl_discrete
Label chopped intervals by their left or right endpointslbl_endpoint lbl_endpoints
Label chopped intervals using the 'glue' packagelbl_glue
Label chopped intervals using set notationlbl_intervals
Label chopped intervals by their midpointslbl_midpoints
Label chopped intervals in sequencelbl_seq
Tips for chopping non-standard typesnon-standard-types
Simple percentage formatterpercent