Skip to content
Back to formatted view

Raw Message

Message-ID: <428B3EA1.2010906@bellsouth.net>
Date: 2005-05-18T13:09:53Z
From: BJ
Subject: applying a function over an array

Is there a way to apply a function with several arguements over an 
array? For instance if you had a function d<-function(a,b,c) {a+b+c} and 
a 4,3 array, could you apply the function over each line of the array? 
tapply seems to only allow one argument, and I just can't think of a way 
to explicitly tell R that I am passing it 3 distinct objects instead of 
1 complex one.  Thank you as always for your help. ~Erithid