3 ms·
How do you use it in the middle of a pipeline like the example with mutate?
by dan-robertson 3y ago
How do you use it in the middle of a pipeline like the example with mutate?
- dash2 3y agoThat’s fair. But that’s the way mutate is designed: it uses `foo` as shorthand for `df$foo`. You could do …|> (\(x) x[vars] <|> bar())() But now we are getting into self-parody… as the article says, it’s a shame there’s no nice anonymous function call syntax. Or possibly … |> within(foo <|> bar()) |> …