Function arguments

n | Integer. |
---|---|

world | WorldMatrix or worldArray object. |

torus | Logical to determine if the |

minPxcor | Integer. Minimum pxcor for the patches (world's left border). |

maxPxcor | Integer. Maximum pxcor for the patches (world's right border). |

minPycor | Integer. Minimum pycor for the patches (world's bottom border). |

maxPycor | Integer. Maximum pycor for the patches (world's top border). |

pxcor | Integer. Vector of patches pxcor coordinates. Must be of length 1
or of the same length as |

pycor | Integer. Vector of patches pycor coordinates. Must be of length 1
or of the same length as |

cellNum | Integer. Vector of cells number. |

pVar | Character. If the |

turtles | AgentMatrix object representing the moving agents. |

patches | Matrix (ncol = 2) with the first column "pxcor" and the second column "pycor" representing the patches coordinates. |

agents | Matrix (ncol = 2) with the first column "pxcor" and the second column "pycor" representing the patches coordinates, or AgentMatrix object representing the moving agents. |

agents2 | Matrix (ncol = 2) with the first column "pxcor" and the second column "pycor" representing the patches coordinates, or AgentMatrix object representing the moving agents, or Matrix (ncol = 2) with the first column "x and the second column "y" representing locations coordinates. |

nNeighbors | Integer: 4 or 8. Represents the number of neighbor patches considered. |

dx | Numeric. Vector of distances to the east (right) from the |

dy | Numeric. Vector of distances to the north (up) from the |

color | Character. Vector of color names. Must be of length |

who | Integer. Vector of the "who" numbers for the selected |

breed | Characters. Vector of "breed" names for the selected |

var | Character. The name of the selected |

val | Numeric or character. Vector of any length. |