Skip to content
Prev 4780 / 7420 Next

plyr and mvabund, conceptual issue

On Wed, Oct 29, 2014 at 4:23 AM, Eduard Sz?cs <eduardszoecs at gmail.com> wrote:
If you're going to use a for-loop, you need to preallocate the output:

out <- vector("list", length(levels(zone))

Otherwise each iteration of the loop needs to copy all previous output
to a new location, making things rather slow.

Hadley