Nothing
locations
) and contacts
(referred here as flows
). This was chosen over the previous implementation
of two named vectors of inward and outward flows with a data frame of
locations to allow the user to flexibly store more than one focus. An extra
element called vars
has been added, storing a dictionary of variables that
are present in the data frame for use with estimate_risk_spread()
. These
variables are accessible via global_vars()
return_all_simulations
has been added.make_epiflows()
is now a generic with methods for data frame, integer, and
numeric input.plot()
defaults to an interactive network plot from visNetwork()
if no
coordinates are available.map_epiflows()
places flows on a mapvis_epiflows()
places flows on a networkgrid_epiflows()
places flows on a bubble plot/gridget_flows()
returns the flows data frame optionally specifying flows from/to a given locationget_locations()
returns the locations data frameget_coordinates()
returns coordinates or NULL
from the locations data frameget_id()
returns the identifier of all locationsget_n()
returns a numeric vector of cases from/to a given locationget_pop_size()
returns a vector of population sizes for locationsget_vars()
returns a specified variable from the locations data frame
OR returns the defined variables if no arguments are given.set_vars()
allows the user to set or reset the global variables.global_vars()
can return, set, and reset globally recognized variablesas.SpatialLinesDataFrame()
converts an epiflows object with coordinates to
a SpatialLinesDataFrame
class from the sp package.Brazil_epiflows
is an epiflows object created from the YF_Brazil
dataYF_flows
is the data frame of flows from YF_Brazil
YF_locations
is the data frame of locations from YF_Brazil
YF_coordinates
are the coordinates for the locations in YF_Brazil
get_codes()
has been removed in favor of get_id()
get_flow_data()
has been removed in favor of get_n()
and get_flows()
get_location_data()
has been removed in favor of get_locations()
Mex_travel_2009
has been removedadd_coordinates()
can now take a data frame inputNEWS.md
file to track changes to the package.Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.