[Rcpp-devel] trying to insert a number as first element of alreadyexisting vector

Mark Leeds markleeds2 at gmail.com
Sun Dec 9 10:19:48 CET 2018


Thanks Barh. I'll check that out.


On Sun, Dec 9, 2018 at 4:03 AM Barth Riley <barthriley at comcast.net> wrote:

> Dear Mark
>
>
>
> Regarding your second question, the STL has a function called
> partial_sum() which can be used to compute the cumulative sum. Go to the
> following URL for details:
>
>
>
> http://gallery.rcpp.org/articles/vector-cumulative-sum/
>
>
>
> Barth
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20181209/e84e4223/attachment.html>


More information about the Rcpp-devel mailing list