On Tue, Oct 16, 2007 at 02:06:47PM -0400, jim holtman wrote:
> If what you are asking for is to see how many times it crosses the
> axis when 'accumulating' the values of the top (+1, -1), then the
> following will do it - this is for 1000 and shows there are 32
> crossings of the axis.

I think what he wants is the number of times that the current sample
is different from the previous sample. (ie. imagine heads = 1 and
tails = -1 how many times does the sequence change sign?)

-- 
Daniel Lakeland
[EMAIL PROTECTED]
http://www.street-artists.org/~dlakelan

______________________________________________
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.

Reply via email to