Re: [Rcpp-devel] translate r to rcpp

2017-10-05 Thread Serguei Sokol
Le 05/10/2017 à 14:55, Dirk Eddelbuettel a écrit : On 5 October 2017 at 12:43, rihab boubakri wrote: | hello please can any one help me to change that function to rcpp or cxxfunction please | | for(i in 1:length(datafi$p)){ | if(datafi$A[i] != "STOP"){ | datafi$tran[i]=matt[[dat

Re: [Rcpp-devel] translate r to rcpp

2017-10-05 Thread Dirk Eddelbuettel
On 5 October 2017 at 12:43, rihab boubakri wrote: | hello please can any one help me to change that function to rcpp or cxxfunction please | | for(i in 1:length(datafi$p)){ | if(datafi$A[i] != "STOP"){ | datafi$tran[i]=matt[[datafi$p[i+1]]][datafi$A[i],datafi$A[i+1]] | } |