Learn R Programming

migrbc (version 2.0.9)

setup_random_test_data: Setup Random Test Data

Description

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

Usage

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

Run this code
# NOT RUN {
res <- setup_random_test_data(10, 
                              initial_date = '2001-01-01',
                              numJourneys = 5,
                              min = 0,
                              max = 10)
head(res)

# }

Run the code above in your browser using DataLab