[R] sample() help

HEUMANN,JOHN (A-Loveland,ex1) john_heumann at agilent.com
Tue Oct 9 19:50:58 CEST 2001


The documentation for sample() describes the optional "prob"
argument as "A vector of probabilities of obtaining the 
elements of the vector being sampled". 

Both run time behavior and source code (routine FixupProb) 
suggest that "prob" can be a vector of non-negative, 
relative weights (i.e. not necessarily normalized). 
Should the help be updated to reflect this?

Regards,
-jh-

=========================================
John M. Heumann, Agilent Technologies
815 14th St. S.W., Loveland, CO 80537 USA
Email: john_heumann at agilent.com
Phone: 970 679-3761 FAX: 970 679-5399
=========================================
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list