Displaying 1 result from an estimated 1 matches for "the_nth".
Did you mean:
th_th
2023 Mar 08
1
nth kludge
...s be a useful variant is a function that does not evaluate
it's arguments and expects a first argument passed from the pipe and a
second argument that is a number like 2 or 3 and a third argument that is
the (name of) a function and remaining arguments.
The above might look like:
. %>% the_nth(2, func, first , last)
The above asks to take the new implicitly passed first argument which I will
illustrate with a real argument as it would also work without a pipeline:
the_nth(piped, 2, func, first, last)
So it would make a list out of the remaining arguments that looks like
list(first,...