[Rcpp-devel] cbind

Dirk Eddelbuettel edd at debian.org
Mon Dec 3 01:39:06 CET 2012


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  


More information about the Rcpp-devel mailing list