[R] Check if data frame column is numeric
Vitalie Spinu
vitosmail at rambler.ru
Wed Dec 17 11:12:18 CET 2008
On Tue, 16 Dec 2008 16:25:07 +0100, Mark Heckmann <mark.heckmann at 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.
More information about the R-help
mailing list