
sim_dataset(n_categ, category_prefix = "", entity_prefix = "", values = "log-normal", size = -1, mean = 0, sd = 1, category_random = FALSE)
sim_dataset(n_categ=50, category_prefix='ctg', values=1) #equal value, just one entity
#Several entities with random values
n_entities <- 50
v_n_c <- sample(1:100, size = n_entities, replace=TRUE)
v_v <- sample(10:5000, size= n_entities, replace=TRUE)
d <- sim_dataset(n_categ = v_n_c, values= v_v, category_random = TRUE)
Run the code above in your browser using DataLab