Hi,<div> 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:</div><div><br></div><div><div>// construct the data.frame object</div>
<div>Rcpp::DataFrame DF = Rcpp::DataFrame(Dsexp);</div><div>// and access each column by name</div><div>Rcpp::IntegerVector a = DF["a"];</div></div><div><div>a[2] = 42;</div></div><div><br></div><div>which accesses DF[2, "a"] using the R syntax. Unfortunately, I don't have the advance knowledge that column "a" will be an integer. I am trying to write some code that would work for any frame. Suggestions? Thanks</div>
<div><br></div><div><br></div><div>Antonio</div>