setup_random_test_data: Setup Random Test Data

Description Usage Arguments Value Examples

View source: R/utility_functions.R

Description

A function to generate test data for RBC for toy examples.

Usage

1
2
setup_random_test_data(num_people = 10, initial_date = "2001-01-01",
  numJourneys = 5, min = 0, max = 10)

Arguments

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.

Value

A data frame object

Examples

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)

migrbc documentation built on July 1, 2020, 8:14 p.m.