Skip to content
Prev 60953 / 63424 Next

Is the behaviour of sample's prob = NULL default argument undocumented?

Hi,

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.

Regards,

Marc Schwartz
On August 8, 2022 at 12:51:28 PM, Reece Goding (reece.goding at outlook.com (mailto:reece.goding at outlook.com)) wrote: