[Rcpp-devel] Concatenating NumericVectors

Dirk Eddelbuettel edd at debian.org
Wed Aug 22 05:04:28 CEST 2012


On 21 August 2012 at 21:08, Dirk Eddelbuettel wrote:
| On 21 August 2012 at 15:38, Martin Oberhuber wrote:
| | Any ideas on how I could concatenate the two vectors using a different
| | methodology? The reason I would like to use NumericVectors here is because I am
| 
| One easy way: Compute n = n_a + n_b, insert a new vector of size n, insert a,
| insert b -- and wrap all that in a little helper function.

Sorry, I mean to say: "Compute n = n_a + n_b, _reserve_ a new vector of size n, ..."

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  


More information about the Rcpp-devel mailing list