On Tue, 16 Dec 2008 16:25:07 +0100, Mark Heckmann <mark.heckm...@gmx.de> wrote:

Hi R-users,

I want to apply a function to each column of a data frame that is numeric.

colwise(), numcolwise() and catcolwise() in plyr package  turn a function that 
operates on vectors into one that operates on columns of data frame:

in your case it would be :

numcolwise(your.fun)(your.data.frame)

Vitalie.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to