pipe: Pipe

%>%R Documentation

Pipe

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

# 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"))

jrosen48/tidyLPA documentation built on Feb. 23, 2024, 11:33 p.m.