try 
sum(a > b)
sum(b > a)
sum(a == b)

Ian


nedmt60 wrote:
> 
> i have
> 
> a = rpois (100000, x)
> b = rpois (100000, y)
> 
> what is the code to show that a>b, b>a and a=b to show just the number of
> occurances?
> at the moment when I type a>b I get a nice long list of true or false.
> 

-- 
View this message in context: 
http://www.nabble.com/rpois-formula-tp25774389p25779305.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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