See magrittr::%>% for details.

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


library(magrittr)
#> 
#> Attaching package: ‘magrittr’
#> The following object is masked from ‘package:tidySummarizedExperiment’:
#> 
#>     extract
#> The following object is masked from ‘package:GenomicRanges’:
#> 
#>     subtract
1 %>% sum(2)
#> [1] 3