search for: format_list

Displaying 1 result from an estimated 1 matches for "format_list".

Did you mean: formats_list
2012 May 24
1
use list as function arguments
...ist)) { 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 way? format_cols <- function(x, format_list = list()) { # usage: length(format_list) must equal ncol(x) # format list should be a list of lists of key=value pairs corresponding to format settings for each column if (is.data.frame(x)) { newout = data.frame() } else if (is.matrix(x)) { newout = matrix()...