library(magrittr)
R Pipeline operators
R
magrittr and own definitions
Warning
To be written.
What I often use
%||%
Forward-pipe operator
R now has |>
rnorm(5000) %>%
%>% `*` (100) %>%
abs matrix(ncol=10) %>%
%>% round %>%
rowMeans `%%`(9) %>% hist
Tee operator (left)
rnorm(5000) %>%
%>% `*` (100) %>%
abs matrix(ncol=10) %>%
%>% round %>%
rowMeans `%%`(9) %T>% hist %>% sum
[1] 2071