Description Usage Arguments Value Examples
View source: R/utility_functions.R
A function to generate test data for RBC for toy examples.
1 2 | setup_random_test_data(num_people = 10, initial_date = "2001-01-01",
numJourneys = 5, min = 0, max = 10)
|
num_people |
The number of person instances. |
initial_date |
The start crossing date. |
numJourneys |
The number of journeys for each person. |
min |
The minimum duration between journeys. |
max |
The maximum duration between journeys. |
A data frame object
1 2 3 4 5 6 | res <- setup_random_test_data(10,
initial_date = '2001-01-01',
numJourneys = 5,
min = 0,
max = 10)
head(res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.