backpipe

Share:

Description

Creates backpiping operators

Usage

1
backpipe(pipe, backpipe = gsub(">", "<", pipe))

Arguments

pipe

character; string representing the existing pipe operator

backpipe

character; string representing the desired backpipe operator

Details

Only pipe is necessary. Arbitrary mixing of forward and reverse are not allowed.

References

https://github.com/smbache/magrittr/issues/26
http://stackoverflow.com/questions/31305342/is-right-to-left-operator-associativity-in-r-possible

See Also

%>%
%>>%

Examples

1
2
3
  backpipe('%>%')
  backpipe('%>>%', '%<<%')
                    

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.