Re: [R] Replace for loop when vector calling itself

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Mon, 07 Mar 2011 12:53:00 -0500

On Mar 7, 2011, at 12:27 PM, David Reiner wrote:

> Isn't c(0, cumsum(diff(theoP)) ) just theoP - theoP[1] ?

I think it just might be. There is no random or systematic factor that modifies that alternating sign in the series.

David Winsemius, MD
West Hartford, CT

R-help_at_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. Received on Mon 07 Mar 2011 - 17:56:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Mar 2011 - 05:20:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive