Re: [Rcpp-devel] Ranges and Casting

2021-01-05 Thread Dirk Eddelbuettel
Francisco, On 5 January 2021 at 13:58, Francisco Bischoff wrote: | First of all, let me thank all involved with the Rcpp package! | | I just have a (maybe silly) question, but I struggle with this frequently | in my codes: | | Range() vs IntegerVector | | One example is when I need a reverse

[Rcpp-devel] Ranges and Casting

2021-01-05 Thread Francisco Bischoff
Hello everyone, First of all, let me thank all involved with the Rcpp package! I just have a (maybe silly) question, but I struggle with this frequently in my codes: Range() vs IntegerVector One example is when I need a reverse index, like R's 10:1, so I had to write my own function that