Skip to content
Prev 33086 / 398506 Next

Basic question on applying a function to each row of a dataframe

Hi,

You need to tell the apply() whether you want to apply the function to 
rows (1) or columns (2).

So in your case you may want to try something like:
  apply(DF, 1, foo)
On Sun, 8 Jun 2003, peter leonard wrote: