Skip to content
Prev 294055 / 398503 Next

How to apply functions across columns?

Good reproducible example ;-)

Easiest is probably just:

cbind(tencor, ThisRowMean =  rowMeans(tencor[, 4:8]))

# Whatever you replace "ThisRowMean" with will become the column name

Best,
Michael
On Wed, May 9, 2012 at 10:12 AM, Robert Latest <boblatest at gmail.com> wrote: