Skip to contents

See magrittr::%>% for details.

Usage

lhs %>% rhs

Arguments

lhs

A value or the magrittr placeholder.

rhs

A function call using the magrittr semantics.

Value

The result of calling rhs(lhs).

Examples

# A simple example using the pipe
c(1, 2, 3) %>% sum()
#> [1] 6