[Rcpp-devel] vector < RawVector > to RawMatrix [like do.call(rbind, mylist)]
Sven E. Templer
sven.templer at gmail.com
Fri Jan 10 10:51:33 CET 2014
Hello,
reading a matrix from a file and transforming it to raw format, I get
a "std::vector<
Rcpp::RawVector >", how can I wrap it to "Rcpp::RawMatrix". Right now I use
"Rcpp::List::create(vector< RawVector >)" and use do.call(rbind, mylist) in
R (does this do a copy to the memory?). Is there a way to wrap it in C++?
Thank you for your help,
Sven.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140110/5ae81de1/attachment.html>
More information about the Rcpp-devel
mailing list