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

From: David Winsemius <>
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 mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.

list of date sections of archive