Description Usage Arguments Examples
Sample a list or vector
1 | list.sample(.data, size, replace = FALSE, weight = 1, prob = NULL)
|
.data |
A |
size |
|
replace |
|
weight |
A lambda expression to determine the weight of
each list member, which only takes effect if |
prob |
A |
1 2 |
$c
[1] 2 3 4
$b
[1] 1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.