Re: [Rcpp-devel] Evaluating Formula's in Rcpp

2013-05-04 Thread Dirk Eddelbuettel
Gabriel, On 3 May 2013 at 21:56, Dirk Eddelbuettel wrote: | On 3 May 2013 at 22:04, Gabriel Hoffman wrote: | | Hi, | | I any trying to develop an R function for running 1000's of | | regressions very fast. I will omit the technical reasons for this, but | | I would like to write code to p

Re: [Rcpp-devel] Evaluating Formula's in Rcpp

2013-05-03 Thread Dirk Eddelbuettel
Hi Gabriel, On 3 May 2013 at 22:04, Gabriel Hoffman wrote: | Hi, | I any trying to develop an R function for running 1000's of | regressions very fast. I will omit the technical reasons for this, but | I would like to write code to perform the following: | | for(j in 1:ncol(X) ){ |

[Rcpp-devel] Evaluating Formula's in Rcpp

2013-05-03 Thread Gabriel Hoffman
Hi, I any trying to develop an R function for running 1000's of regressions very fast. I will omit the technical reasons for this, but I would like to write code to perform the following: for(j in 1:ncol(X) ){ fit = myRegression( y ~ age:X[,j] ) } This uses R's convenient 'formula' f