[R] Automating binning for chisq.test()

2007-10-12 Thread D. R. Evans
The standard chisq.test() and fisher.test() functions, when applied to two distributions (to determine whether the same underlying distribution applies to both) requires one to pre-bin the distributions. Is there a library function (either built-in or in a package) that acts more like the ks.test(

Re: [R] Q: appending to non-existent vector?

2007-09-21 Thread D. R. Evans
OK; lots of ideas there. Thanks very much. Doc __ 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-containe

[R] Q: appending to non-existent vector?

2007-09-21 Thread D. R. Evans
This is a real newbie question. What makes it worse is that I know I've seen the answer somewhere, but I can no longer find it. If I have a loop that is supposed to generate a vector piecemeal, adding an element each time through the loop, what do I do to stop it failing the first time around the