| MockDataGenerator | R Documentation |
Object that stores mock data configurations and generated datasets
new()Create a new MockDataGenerator object
MockDataGenerator$new(configuration)
configurationlist 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_namestring, data set name to retrieve
sizeinteger, size of dataset (if provided, will refresh dataset)
refreshboolean, refresh existing data?
mock dataset
get_all_data()Get all datasets
MockDataGenerator$get_all_data(refresh = FALSE, sizes = NULL)
refreshboolean, refresh existing data?
sizesinteger, 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)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.