Split and Recombine Your Data

Sometimes you need to split your data and work on the two chunks independently before bringing them back together. 'Taber' allows you to do that with its two functions.

taber is for people who use dplyr and magrittr. If your workflow is heavy on pipes, sometimes you need to do different operations on different parts of the data, sometimes that's cleaning or transforming the data. In my own work I deal with flight data and I need to do one set of operations on arrival data and another on departure data but all of it has the same format so I'd like to keep it together as one dataset.

# taber is available on CRAN
# the development version is available from github and can be installed most easily with devtools
qsrt_ <- function(.data){
  if(length(.data)==0 || nrow(.data)==0 || all(.data$zed==.data$zed[1])){
  .data %>% scion(zed<=zed[1], false_fun=qsrt_ ) %>%
    scion(zed!=zed[1]) %>%
    qsrt_ %>%
    graft %>%
data.frame(zed = sample(1:25, 25, FALSE)) %>% qsrt_

Taber is named for George Lindley Taber, noted American horticulturist and the eponym for my mother's favorite azalea.


taber 0.1.0

  • added clear_stack method to reset internal stack
  • added ability to place named scions in the package environment
  • added NEWS file
  • documentation fixes

taber 0.0.1

  • initial CRAN release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1.0 by Seth Wenchel, 2 years ago


Report a bug at http://github.com/restonslacker/taber/issues

Browse source code at https://github.com/cran/taber

Authors: Seth Wenchel [aut, cre, cph]

Documentation:   PDF Manual  

BSD_3_clause + file LICENSE license

Imports magrittr, dplyr

See at CRAN