beetle2 <samandbren...@aapt.net.au> [Sun, Apr 19, 2009 at 03:01:43AM CEST]: > > I'm thinking I will just use: > results <- rbinom(1000, 10, .25) > d = sum(results == 0 ) > df = (d/1000) > df > > And do each individually
ok, at least you are trying some things out for yourself. In fact, along with reading the doc, this is the fastest and most efficient way to learn the language. If you keep going, you will soon realize that the language is much more powerful than the vocabulary you are applying currently. For the time being, try table(result) -- Johannes Hüsing There is something fascinating about science. One gets such wholesale returns of conjecture mailto:johan...@huesing.name from such a trifling investment of fact. http://derwisch.wikidot.com (Mark Twain, "Life on the Mississippi") ______________________________________________ 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.