[Rd] RcppTemplate 4.0 with data frame support

From: Dominick Samperi <dsamperi_at_decisionsynergy.com>
Date: Tue 11 Jul 2006 - 15:44:09 GMT


Data frame support has been added to the package RcppTemplate 4.0, a template/class library that facilitates the use of C++ libraries from R.

On the C++ side the code might look something like:

RcppFrame frame(fp); // Here fp is the input SEXP corresponding to an R data frame.
vector<vector<ColDatum> > table = frame.getTableData();
...

level = table[row][col].getFactorLevel(); name = table[row][col].getFactorName();
...

Thanks to Hin-Tak Leung and other users of this mailing list for helpful comments.

The RcppTemplate package also contains detailed instructions on using MinGW and MS Visual C++ under Windows.

ds



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Jul 12 01:50:46 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 11 Jul 2006 - 16:29:56 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.