First of all, this is not a list, this is a vector. Second, see ?cumsum. Best, Gabor
On Mon, Feb 9, 2009 at 11:13 PM, glenn <g1enn.robe...@btinternet.com> wrote: > very simple question I am sure sorry: > > > > for a list; > > > > test <-c(1,2,3) > > > > how do I total them up please to return the result > > > > > > 1,3,6 > > > > Regards > > > > Glenn > > > > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Gabor Csardi <gabor.csa...@unil.ch> UNIL DGM ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.