add_var_random_dbl | R Documentation |
Add a random double variable to dataset
add_var_random_dbl(
data,
name = "random_dbl",
min_val = 0,
max_val = 100,
overwrite = TRUE,
seed
)
data |
A dataset |
name |
Name of new variable (as string) |
min_val |
Minimum random integers |
max_val |
Maximum random integers |
overwrite |
Can new random variable overwrite an existing variable in dataset? |
seed |
Seed for random number generation (integer) |
Dataset containing new random variable
library(magrittr)
iris %>% add_var_random_dbl() %>% head()
iris %>% add_var_random_dbl(name = "random_var") %>% head()
iris %>% add_var_random_dbl(min_val = 1, max_val = 10) %>% head()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.