Function arguments

## Arguments

n Integer. WorldMatrix or worldArray object. Logical to determine if the world is wrapped. Default is torus = FALSE. Integer. Minimum pxcor for the patches (world's left border). Integer. Maximum pxcor for the patches (world's right border). Integer. Minimum pycor for the patches (world's bottom border). Integer. Maximum pycor for the patches (world's top border). 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 pxcor. Integer. Vector of cells number. Character. If the world is a worldArray object, pVar is the name of the layer to use to define the patches values. pVar must not be provided if the world is a worldMatrix object. AgentMatrix object representing the moving agents. Matrix (ncol = 2) with the first column pxcor and the second column pycor representing the patches coordinates. Matrix (ncol = 2) with the first column pxcor and the second column pycor representing the patches coordinates, or AgentMatrix object representing the moving 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, or Matrix (ncol = 2) with the first column x and the second column y representing locations coordinates. Integer: 4 or 8. Represents the number of neighbor patches considered. Numeric. Vector of distances to the east (right) from the agents. If dx is negative, the distance to the west (left) is computed. dx must be of length 1 or of the same length as number of patches or turtles in agents. Numeric. Vector of distances to the north (up) from the agents. If dy is negative, the distance to the south is computed (down). dy must be of length 1 or of the same length as number of patches or turtles in agents. Character. Vector of color names. Must be of length n. If missing, colors are assigned using the function rainbow(n). Integer. Vector of the who numbers for the selected turtles. Characters. Vector of breed names for the selected turtles. If missing, there is no distinction based upon breed. Character. The name of the selected agents variable. If agents are patches and the world is a worldMatrix object, var must not be provided. If agents are patches and the world is a worldArray object, var is the name of the layer to use to define the patches values. If agents are turtles, var is one of the turtles' variable and can be equal to xcor, ycor, any of the variables created when turtles were created, as well as any variable created using turtlesOwn(). Numeric or character. Vector of any length.