Learn R Programming

ABM (version 0.4.1)

newRandomMixing: Creates a RandomMixing object

Description

Creates a RandomMixing object

Arguments

Value

an external pointer.

Examples

Run this code
# creates a simulation with 100 agents
sim = Simulation$new(100)
# add a random mixing contact pattern for these agents.
sim$addContact(newRandomMixing())

Run the code above in your browser using DataLab