R-beta: S compatibility
E. S. Venkatraman
venkat at biosta.mskcc.org
Sat Aug 15 22:22:22 CEST 1998
On Sat, 15 Aug 1998, Ross Ihaka wrote:
>
> 2. sample() does not have the option, prob=
>
> This is a good little exercise for someone :-). Anyone want to write a
> C function which does this. I.e. we want a function which takes a
> vector of probabilities and returns the sampled values. We probably
> want with and without replacement. Given such a function it would be
> about two minutes work to integrate it into R.
>
Would a Fortran code be acceptable?
E. S. Venkatraman (venkat at biosta.mskcc.org)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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