search for: format_col

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

Did you mean: format_cols
2012 May 24
1
use list as function arguments
...list) { 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 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...