[R] Apply a function for each Row
andy_liaw at merck.com
Wed Sep 14 20:20:28 CEST 2005
> From: Barry Rowlingson
> Marc Bernard wrote:
> > Dear All,
> > I wonder how to apply a given function to each row of a
> data frame. I've seen this function before but don't
> remember its name....
> You've just said it twice!
A small catch: Marc wants to apply the function to rows of a data frame,
but apply() expects a matrix or array, and will coerce to such if given a
data frame, which may (or may not) be problematic...
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help