[Rcpp-devel] retrieve the column names of Rcpp::DataFrame

Chaomei Lo chaomeilo at gmail.com
Fri Jul 11 02:09:27 CEST 2014

I have a R data frame pass to the Rcpp function, for example in below-

void myDataFrame(Rcpp::DataFrame df) {

I would need to know the column names first before I retrieve the data but
df.colnames() does not work but the df.length() and df.nrows() work.

Thanks for help !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140710/8535c00d/attachment.html>

More information about the Rcpp-devel mailing list