Learn R Programming

rmonad (version 0.7.0)

infix: Infix operators

Description

Infix monadic sequence operators

Usage

lhs %>>% rhs

lhs %v>% rhs

lhs %*>% rhs

lhs %>_% rhs

lhs %>^% rhs

lhs %^>% rhs

lhs %|>% rhs

lhs %||% rhs

lhs %__% rhs

Arguments

lhs

left hand side value

rhs

right hand side value

Details

See the main package help page (?rmonad) or the intro and cheatsheet vignettes for more information.

Examples

Run this code
# NOT RUN {
256 %>>% sqrt
256 %v>% sqrt
list(1,2,3) %*>% sum
iris %>_% plot %>>% summary 
1:10 %>^% rgamma(10, 5) %>^% rgamma(10, 6) %^>% cor
1:10 %>>% colSums %|>% sum
stop("die") %||% 4 %>>% sqrt
16 %>>% sqrt %__% 25 %>>% sqrt
# }

Run the code above in your browser using DataLab