Re-export of the magrittr pipe. See %>% from magrittr for full details. It forwards the left-hand side (LHS) as the first argument to the right-hand side (RHS) call.

lhs %>% rhs

Value

The result of applying rhs to lhs.

Examples

# Basic usage
1:5 %>% sum()
#> [1] 15

# Chain multiple transformations
1:10 %>%
    mean() %>%
    round(1)
#> [1] 5.5