randomize: Randomize a Dataframe

Description Usage Arguments Examples

View source: R/randomize.R

Description

Randomize a Dataframe

Usage

1

Arguments

data

A dataframe or tibble.

Examples

 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)

meerapatelmd/rubix documentation built on Sept. 5, 2021, 8:30 p.m.