Displaying 1 result from an estimated 1 matches for "tp3254271p3254271".
2011 Feb 02
2
matrix and a function - apply function
...for point (4,8) I would get 4+8/4 = 6
I have tried using sapply here but I get this:
> sapply(m,function(x,y) x+y/x)
Error in y/x : 'y' is missing
what I am doing wrong?
thanks
ADias
--
View this message in context: http://r.789695.n4.nabble.com/matrix-and-a-function-apply-function-tp3254271p3254271.html
Sent from the R help mailing list archive at Nabble.com.