Skip to content

A Collection of Pipe Operators [R Package]

License

Notifications You must be signed in to change notification settings

cwendorf/simplePipes

Repository files navigation

simplePipes

A Collection of Pipe Operators

minimal R version License: MIT

Overview

simplePipes is a small R package that implements a variety of simple pipe operators. It has less error checking than major R packages (like magrittr or dplyr) but contains more varieties -- both forward and backward versions of basic, tee, wye, exposition, compound assignment, and dot pipes -- and introduces the concept of through pipes.

Installation

This package is not currently on CRAN, but can be installed and loaded using these R commands:

install.packages("remotes")
remotes::install_github("cwendorf/simplePipes")
library(simplePipes)

If you do not wish a full install, the latest functions can be made available using these R commands:

source("http://raw.githubusercontent.com/cwendorf/simplePipes/main/source-simplePipes.R")

Usage

The Tutorials for simplePipes provide explanations and examples of:

  • The Simplest Pipes: Versions of basic, tee, and wye pipes
  • The Data Manipulation Pipes: Versions of exposition and compound assignment pipes
  • The Functional Dot Pipes: Versions of simple dot and through pipes

Contact Me

Citation

Wendorf, C. A. (2021). simplePipes: A collection of pipe operators [R Package]. https://github.com/cwendorf/simplePipes