[Rd] Is the behaviour of sample's prob = NULL default argument undocumented?
m@rc_@chw@rtz @end|ng |rom me@com
Mon Aug 8 19:13:06 CEST 2022
In the Details section of ?sample, the 6th paragraph begins with the following sentence:
"The optional prob argument can be used to give a vector of weights for obtaining the elements of the vector being sampled."
Since the argument is optional, it would imply that the default behavior is for an equal weighting of the elements in the source vector.
On August 8, 2022 at 12:51:28 PM, Reece Goding (reece.goding using outlook.com (mailto:reece.goding using outlook.com)) wrote:
> Does the documentation for sample never say what happens if you leave the prob argument NULL?
> This might be a job for R-help, but pride has me hoping that I'm missing something very technical rather than very obvious.
> Reece Goding
> R-devel using r-project.org mailing list
More information about the R-devel