[R] Need some help

azzza azza.khogaliali at utoronto.ca
Tue Oct 16 21:42:25 CEST 2007



Thank you guyz. your codes gave me the results I was looking for. And thanks
for the reference suggestion. Lastly,  how do I code the frequency of heads?



Daniel Lakeland wrote:
> 
> 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
> dlakelan at street-artists.org
> http://www.street-artists.org/~dlakelan
> 
> ______________________________________________
> 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.
> 
> 

-- 
View this message in context: http://www.nabble.com/Need-some-help-tf4624513.html#a13241095
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list