3 ms·
That’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 ge
by dash2 3y ago
That’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()) |> …