Skip to content
Prev 166351 / 398502 Next

Faster Printing Alternatives to 'cat'

Here is one way of doing it.  To write out 1 million rows on my system
took 21 seconds.
stats (1) - Rgui : <0.0 0.0> 73738.9 : 185.1MB
+     write.table(cbind(foo[i], bar[i]), file=output, sep='\t',
col.names=FALSE, row.names=FALSE)
+ }
done (1) - Rgui : <20.7 20.7> 73759.6 : 124.6MB

        
On Thu, Jan 8, 2009 at 8:26 AM, Gundala Viswanath <gundalav at gmail.com> wrote: