Skip to content
Prev 294091 / 398503 Next

How to apply functions across columns?

Indeed, apply is very flexible and idiomatically R (i.e., the right
way to do it) -- but, just a heads up, for datasets with many
rows/columns rowMeans and colMeans will be *much* faster (there's loop
overhead in the apply family)

Best,
Michael
On Wed, May 9, 2012 at 3:46 PM, Robert Latest <boblatest at gmail.com> wrote: