Description Usage Arguments Examples
[sample()] and [diag()] behave differently depending on whether their first argument is a scalar or a function. These shims throw an error when given a scalar to force you to pick a safer alternative.
1 2 3 | strict_sample(x, size = length(x), replace = FALSE, prob = NULL)
strict_diag(x = 1, nrow, ncol)
|
x, size, replace, prob, nrow, ncol |
Passed on to [sample()] and [diag()] |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.