pipe function

Pipe

Pipe

tidyLPA suggests using the pipe operator, %>%, from the magrittr package (imported here from the dplyr package).

Arguments

  • lhs, rhs: An object and a function to apply to it

Examples

# Instead of subset(iris, select = c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width")) # you can write iris %>% subset(select = c("Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width"))
  • Maintainer: Joshua M Rosenberg
  • License: MIT + file LICENSE
  • Last published: 2021-11-17