Re: [Rcpp-devel] access to element of generic data frame

2012-06-25 Thread Dirk Eddelbuettel
On 25 June 2012 at 17:43, Antonio Piccolboni wrote: | Hi, |  is there a a way to access a specific element of a data frame in Rcpp without | previous knowledge of the type of the columns? I see from RcppExamples that one | can do something like: | | // construct the data.frame object | Rcpp::Dat

[Rcpp-devel] access to element of generic data frame

2012-06-25 Thread Antonio Piccolboni
Hi, is there a a way to access a specific element of a data frame in Rcpp without previous knowledge of the type of the columns? I see from RcppExamples that one can do something like: // construct the data.frame object Rcpp::DataFrame DF = Rcpp::DataFrame(Dsexp); // and access each column by nam