matchState | R Documentation |
Check if the state of an agent matches a given state
matchState(agent, rule)
agent |
an external pointer returned by newAgent |
rule |
a list holding the state to match against |
This function is equivalent to stateMatch(getState(agent), rule)
The state matches the rule if and only if each domain (names of the list) in rule has the same value as in state. The domains in domains of the state not listed in rule are not matched
a logical value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.