Is there a way to write pipelined functions in R where the result of one function passes immediately into the next? I\'m coming from F# and really appreciated this ability b
This works for R pretty similar in F#:
"%|>%" <- function(x, fun){ if(is.function(x)) { function(...) fun(x(...)) } else { fun(x) } }