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 !
Chaomei
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to