Hi guys, I'm wondering -- what operations are available for subsetting of Vectors in Rcpp? I've scoured through all the vignettes but it seems like a couple 'nice-to-haves' aren't there yet. My questions:
* is there a difference between subsetting a vector with () vs []? * is it possible to subset based on a collection of indices, eg: NumericVector X(10); NumericVector Y = X[ c(1, 2, 5) ] * is it possible to slice a vector, eg. such that we either hold a reference to, or copy out, the elements at every 'x' indices? I know 'seq' is available for consecutive indices, but might there be a third 'by' argument coming, or an alternative function, soon? Thanks for the help, -Kevin
_______________________________________________ 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