MockDataGenerator | R Documentation |
Object that stores mock data configurations and generated datasets
new()
Create a new MockDataGenerator object
MockDataGenerator$new(configuration)
configuration
list or path to YAML file with datasets configurations. Check configuration for details. For a sample YAML check examples.
A new MockDataGenerator object
get_data()
Get a dataset (if does not exist, generate it)
MockDataGenerator$get_data(data_name, size = NULL, refresh = FALSE)
data_name
string, data set name to retrieve
size
integer, size of dataset (if provided, will refresh dataset)
refresh
boolean, refresh existing data?
mock dataset
get_all_data()
Get all datasets
MockDataGenerator$get_all_data(refresh = FALSE, sizes = NULL)
refresh
boolean, refresh existing data?
sizes
integer, or vector of integers with data sizes
list with all datasets
clone()
The objects of this class are cloneable with this method.
MockDataGenerator$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.