Description Usage Arguments Value
function to construct travel matrix from data
1 | setup_travel_real_data(travel_filename, pop_size, travel_params)
|
travel_filename |
character vector of length 1: file where travel data is located |
pop_size |
numeric vector of length n_countries: population size in each country |
travel_params |
named vector/list containing the element "epsilon": a numeric vector of length 1 which scales the off-diagonal terms of the travel matrix. Roughly, the ratio of off-diagonal to on-diagonal term size. |
square travel matrix of side length n_countries (unnormalised)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.