Skip to content
Prev 4837 / 10988 Next

[Rcpp-devel] cbind

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