Description Usage Arguments Examples
View source: R/randomize.R
Randomize a Dataframe
1
randomize(data)
data
A dataframe or tibble.
1 2 3 4 5 6 7 8 9 10
library(tidyverse) test_data <- tibble( Group = sample(c("Apple", "Pear"), size = 10, replace = TRUE), A = sample(c(NA_integer_, 1:3), size = 10, replace = TRUE), B = sample(c(NA_integer_, 4:6), size = 10, replace = TRUE) ) randomize(test_data)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.