Dear All, I am new to Rcpp. If I want to do the similar thing as "cbind" in R, what should I do in RcppArmadillo? Thanks. Best wishes! Honglang Wang Office C402 Wells Hall Department of Statistics and Probability Michigan State University 1579 I Spartan Village, East Lansing, MI 48823 wangho16 at msu.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20121202/4a554907/attachment.html>
[Rcpp-devel] cbind
2 messages · Honglang Wang, Dirk Eddelbuettel
On 2 December 2012 at 19:01, Honglang Wang wrote:
| Dear All,
| I am new to Rcpp. If I want to do the similar thing as "cbind" in R, what
| should I do in RcppArmadillo? Thanks.
C++ is a strongly typed language, so this will depend on _what_ you want to
combine via cbind().
As RcppArmadillo gives you the entire Armadillo API, you can use whatever you
find here _if your data is in suitable Armadillo types_ :
http://arma.sourceforge.net/docs.html
Dirk
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com