Description Usage Arguments Value Examples
Create a scenario for SIM modelling based on costs, production and attraction variables
1 | sim_scenario(sim_obj, cost = NULL, production = NULL, attraction = NULL)
|
sim_obj |
A SIM object |
cost |
A cost data frame with origin, destination and cost columns |
production |
A production data frame - origin column plus production variable columns |
attraction |
A attraction data frame - destinmation column plus attraction variable columns |
A scenartio data frame merging the information above
1 2 3 | require(tidyverse)
eastmid_ttw %>% poisson_reg(From,To,Dist,Count) -> mdl
eastmid_ttw %>% add_sim_fitted(mdl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.