I was wondering if anybody knew or could help me find the formal argument names for all of the magrittr alias functions. For example, I know that the argument for 'set_colnames' is 'value'.
df <- data.frame(1:3, 4:6, 7:9) %>%
set_colnames(value = c('a', 'b', 'c')
Normally, I just pass the arguments in unnamed but lately I've been trying to make my code as robust as possible and it's also helpful when you're trying to use these aliases inside of an apply function (or llply in my case). The problem that I'm having is that I have a list of similar df's and I want to extract the same column from each but still retain the list format.
df_list <- list(data.frame('a' = 1:3, 'b' = 4:6),
data.frame('a' = 7:9, 'b' = 10:12))
What I would like to do is something like
df_b <- df_list %>%
llply(.fun = use_series, b)
But this doesn't work because I don't know the formal name to pass to 'use_series'.