Wraps sample function in base R so that if options are length 1 and an integer,
doesn't default to sample.int. See sample
for arguments.
1 | safe_sample(x, size, prob = NULL, replace = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.