Skip to contents

Generate a random dataset

Usage

generate_fake_data(num_rows, num_numeric_cols, num_factor_cols, id_str)

Arguments

num_rows

The number of rows to add. A positive integer.

num_numeric_cols

The number of numerical variables to add. A positive integer.

num_factor_cols

The number of categorical variables to add. A positive integer.

id_str

The string indicating IDs. A string.

Value

A random dataset. A tibble.

Examples

dat <- generate_fake_data(10, 5, 3, "HelixID")
#> Error in loadNamespace(x): there is no package called ‘checkmate’