3 ms·
No, you can indeed write `df$foo <|> f()`.
by dash2 3y ago
No, you can indeed write `df$foo <|> f()`.
- dan-robertson 3y agoHow 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()) |> …