fstpackage / synthetic

R package for dataset generation and benchmarking
GNU Affero General Public License v3.0
20 stars 1 forks source link

Better interface for table_generator #34

Closed MarcusKlik closed 4 years ago

MarcusKlik commented 4 years ago

It should be able to specify columns directly to make it look more like a normal table definition.

generator <- table_generator(
   Logical = sample_logical(nr_of_rows, true_false_na_ratio = c(85, 10, 5)),
   Integer = sample_integer(nr_of_rows, max_value = 100L),
   Real    = sample_integer(nr_of_rows, 1, 10000, max_distict_values = 20) / 100,
   Factor  = as.factor(sample(labels(UScitiesD), nr_of_rows, replace = TRUE)),
   id =  "fst homepage",
)

Perhaps the method should be called _tabledefinition to signal that no actual table is generated to begin with.

MarcusKlik commented 4 years ago

Method is now called synthetic_table()