Description Usage Arguments Value Examples
View source: R/totaltravelout_samerate_regulated.R
This function gives a list of total travel data allowed from 1 country to another for a given in rate.
1 | totaltravelout_samerate_regulated(traveloutdat, ratein, P)
|
traveloutdat |
is the data of travel out from each country without pandemic |
ratein |
numeric values of rate let people in |
P |
vector population of countries in order as travel data |
A list of number travelers can go from 1 country to another each day during the duration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
For 3 countries
P1 = 10^7
P2 = 3*10^6
P3 = 2*10^6
P = c(P1, P2, P3) #population of 3 countries
traveloutdat = travelout_3dat
ratein = 1 # policy that allows full rate of travel in
totaltravelout_samerate_regulated(traveloutdat, ratein, P)
##########################
For 2 countries
P1 = 10^7
P2 = 3*10^6
P = c(P1, P2) #population of 2 countries
traveloutdat = travelout_3dat[,1:2] #travel out of 2 countries
ratein = .5 # policy that allows full rate of travel in
totaltravelout_samerate_regulated(traveloutdat, ratein, P)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.