From p.dalgaard@biostat.ku.dk  Wed Jul  7 15:45:41 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 07 Jul 1999 16:45:41 +0200
Subject: Bug on sample (PR#219)
In-Reply-To: jperez@cesma.usb.ve's message of "Wed, 7 Jul 1999 16:23:54 +0200 (MET DST)"
References: <199907071423.QAA19825@pubhealth.ku.dk>
Message-ID: <x2oghobjsa.fsf@blueberry.kubism.ku.dk>

jperez@cesma.usb.ve writes:

> sample(1,1,prob=c(1))
> Causes a core dump.

...confirmed. prob=1 is not necessary, sample(1,1,,.1) crashes too.

Cause: revsort() does horrible things if n <= 1. Will fix.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Bug on sample (PR#219)
Peter Dalgaard BSA