moodymudskipper / tags

A collection of tags built using the package tag
GNU General Public License v3.0
8 stars 0 forks source link

dots operation #15

Closed moodymudskipper closed 5 years ago

moodymudskipper commented 5 years ago

it would be really cool to be able to use the dplyr syntax to add, remove, modify the ... argument before it's passed to another function

selecting_dots would work like select, it would support select helpers and we can use it to select, remove, and rename them.

mutating_dots would work like mutate, you can redefine a dot or add a new one, we can use the definitions of others too, in that case they are quoted though.

We'd also have transmuting_dot and renaming_dots

fun <- function(x, ...) renaming_dots(na.rm = foo)$max(x, ...)
fun(c(1,NA,3), foo = TRUE)
# [1] 2

Additionally to the dplyr variations, we need reversing_dots

moodymudskipper commented 5 years ago

done