Re: [R] Equivalent of Mathematica's Apply

2008-06-24 Thread Juan Pablo Romero Méndez
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Juan Pablo Romero Méndez > Sent: Tuesday, June 24, 2008 11:51 AM > To: [EMAIL PROTECTED] > Subject: [R] Equivalent of Mathematica's Apply > > Hello, > > Is there some equivalent function in R of Mathema

Re: [R] Equivalent of Mathematica's Apply

2008-06-24 Thread Franz Mueter
AIL PROTECTED] Subject: [R] Equivalent of Mathematica's Apply Hello, Is there some equivalent function in R of Mathematica's "Apply" i.e. Apply[ f, g[a,b]] ==> f[a,b] In concret, I have a matrix of indexes: > ind = cbind(1:5, 1:5+5) > ind [,1] [,2] [1,]16

[R] Equivalent of Mathematica's Apply

2008-06-24 Thread Juan Pablo Romero Méndez
Hello, Is there some equivalent function in R of Mathematica's "Apply" i.e. Apply[ f, g[a,b]] ==> f[a,b] In concret, I have a matrix of indexes: > ind = cbind(1:5, 1:5+5) > ind [,1] [,2] [1,]16 [2,]27 [3,]38 [4,]49 [5,]5 10 and I'd like to extrac