Skip to content
Prev 276339 / 398506 Next

any updates w.r.t. lapply, sapply, apply retaining classes

Two comments:

* sapply is generally only _slightly_ faster than a for loop

* it's almost always better to use vapply instead of sapply.

But I agree that simplify2array should be a generic so that you can
write custom methods to support new classes.

Hadley