pipe: Pipe

Description Arguments Examples

Description

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

1
2
3
4
5
# 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"))

tidyLPA documentation built on Nov. 17, 2021, 5:07 p.m.