Rdocumentation
powered by
Learn R Programming
rgp (version 0.4-1)
randelt: Choose a random element from a list or vector
Description
Returns a unformly random chosen element of the vector or list
x
.
Usage
randelt(x, prob = NULL)
Arguments
x
The vector or list to chose an element from.
prob
A vector of probability weights for obtaining the elements of the vector or list being sampled.
Value
A uniformly random element of
x
.