Displaying 1 result from an estimated 1 matches for "1000x7".
Did you mean:
1000x
2009 Aug 26
1
Applying do.call to a data.frame using function arguments
...across rows of a matrix??" where Tony Plate recommended the
following two alternatives (x2 is an R object of type data frame -- a matrix
also works for solution #1):
1) apply(format(x2), 1, paste, collapse=" ");
2) do.call("paste",x2)
I applied each solution to a 1000x7 data frame, and found the do.call
function takes <75% of the average time taken by the apply function on my
particular system (repeated the comparison a few thousand times). I would
like to use the do.call option for the x2 data frame for the increased
performance, but cannot determine how I can...