Displaying 1 result from an estimated 1 matches for "apply_funct".
2012 May 24
1
use list as function arguments
...h a different set of specified
arguments. I'm trying to figure out how to pass in a list of argument
lists, then loop through the top-level list, passing in the lower-level
list as function arguments.
pseudocode:
b = list( list( arg1 = 1, arg2 = 2 ),
list( arg1 = 3, arg2 = 4 )
)
a <- apply_function(arglist) {
for (i in length(arglist)) {
b(arglist[i])
}
}
Specifically, the actual use I'm trying to implement is a function to
format columns of data frames and matrices independently. What I have
so far is below, but it's not working. Perhaps I'm going about this the
wrong...