Skip to content
Prev 59272 / 63421 Next

[R/S-PLUS] [EXTERNAL] Re: [External] anonymous functions

One advantage of the new pipe operator over magrittr's is that the former
works with substitute().
paste(collapse=", ",x))
[1] "2^(1:4): 2, 4, 8, 16"
[1] ".: 2, 4, 8, 16"

This is because the new one is at the parser level, so f() sees an ordinary
function call.
f(2^(1:4))


On Mon, Dec 7, 2020 at 10:35 AM Therneau, Terry M., Ph.D. via R-devel <
r-devel at r-project.org> wrote: