Dot-Pipe: an S3 Extensible Pipe for R

Abstract:

Pipe notation is popular with a large league of R users, with magrittr being the dominant realization. However, this should not be enough to consider piping in R as a settled topic that is not subject to further discussion, experimentation, or possibility for improvement. To promote innovation opportunities, we describe the wrapr R package and “dot-pipe” notation, a well behaved sequencing operator with S3 extensibility. We include a number of examples of using this pipe to interact with and extend other R packages.

Cite PDF Tweet

Authors

Affiliations

John Mount

 

Nina Zumel

 

Published

Aug. 16, 2018

Received

Mar 2, 2018

DOI

10.32614/RJ-2018-042

Volume

Pages

10/2

309 - 316

CRAN packages used

data.table, magrittr, dplyr, future, rmonad, pipeR, backpipe, drake, wrapr, ggplot2, rquery

CRAN Task Views implied by cited packages

HighPerformanceComputing, Databases, Finance, Graphics, ModelDeployment, Phylogenetics, WebTechnologies

Footnotes

    Reuse

    Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

    Citation

    For attribution, please cite this work as

    Mount & Zumel, "The R Journal: Dot-Pipe: an S3 Extensible Pipe for R", The R Journal, 2018

    BibTeX citation

    @article{RJ-2018-042,
      author = {Mount, John and Zumel, Nina},
      title = {The R Journal: Dot-Pipe: an S3 Extensible Pipe for R},
      journal = {The R Journal},
      year = {2018},
      note = {https://doi.org/10.32614/RJ-2018-042},
      doi = {10.32614/RJ-2018-042},
      volume = {10},
      issue = {2},
      issn = {2073-4859},
      pages = {309-316}
    }