[Rd] t.test and n = 2 (PR#724)

charlie@stat.umn.edu charlie@stat.umn.edu
Thu, 2 Nov 2000 14:53:29 +0100 (MET)

Full_Name: Charles J. Geyer
Version: 1.1.1
OS: linux-gnu
Submission from: (NULL) (

> t.test(rnorm(2))
Error in t.test(rnorm(2)) : not enough x observations

Is this just a bug (the tests in lines 34 and 49 of the code should be "< 2"
rather than "<= 2") or is it some sort of bondage and dicipline political
for the user's own good?  If the latter, I don't approve.  If the procedure
mathematical sense, then R should do it.

r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch