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 | e...@debian.org | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel