Defined as roughly : a %>.% b ~ { . <- a; b }; (with visible .-side effects).

pipe_left_arg %.>% pipe_right_arg

Arguments

pipe_left_arg

left argument expression (substituted into .)

pipe_right_arg

right argument expession (presumably including .)

Value

eval({ . <- pipe_left_arg; pipe_right_arg };)

Details

The pipe operator has a couple of special cases. First: if the right hand side is a name, then we try to de-reference it and apply it as a function or surrogate function.

Examples

# both should be equal: cos(exp(sin(4)))
#> [1] 0.8919465
4 %.>% sin(.) %.>% exp(.) %.>% cos(.)
#> [1] 0.8919465