<div dir="ltr"><div>I have a R data frame pass to the Rcpp function, for example in below-</div><div><br></div><div>void myDataFrame(Rcpp::DataFrame df) {</div><div>....</div><div>}</div><div><br></div><div>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.  </div>
<div><br></div><div>Thanks for help !</div><div>Chaomei</div><div><br></div><div><br></div><div> </div></div>