Skip to content
Prev 105806 / 398506 Next

any way to make the code more efficient ?

I don't know about efficiency, but at least for readability, you may
want to do the following:

1. Indent your code.
2. Create a list of appropriate length, and populate the list with
objects you're creating in the loop.
3. After the loop, use do.call(rbind, list).

HTH,
Andy 

From: Leeds, Mark (IED)
------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}