powered by
world
Create a world of patches of class worldMatrix.
patches
worldMatrix
createWorld(minPxcor, maxPxcor, minPycor, maxPycor, data = NA)# S4 method for numeric,numeric,numeric,numeric,ANY createWorld(minPxcor, maxPxcor, minPycor, maxPycor, data = NA)# S4 method for missing,missing,missing,missing,missing createWorld()
# S4 method for numeric,numeric,numeric,numeric,ANY createWorld(minPxcor, maxPxcor, minPycor, maxPycor, data = NA)
# S4 method for missing,missing,missing,missing,missing createWorld()
WorldMatrix object composed of (maxPxcor - minPxcor + 1) * (maxPycor - minPycor + 1)
WorldMatrix
(maxPxcor - minPxcor + 1) * (maxPycor - minPycor + 1)
patches (i.e., matrix cells).
Integer. Minimum pxcor for the patches (world's left border).
pxcor
Integer. Maximum pxcor for the patches (world's right border).
Integer. Minimum pycor for the patches (world's bottom border).
pycor
Integer. Maximum pycor for the patches (world's top border).
Vector of length 1 or length (maxPxcor - minPxcor + 1) * (maxPycor - minPycor + 1). Default is NA.
NA
Sarah Bauduin, Eliot McIntire, and Alex Chubaty
If data is provided, values are assigned by rows.
data
If no parameters value are provided, default values are: `minPxcor = -16`, `maxPxcor = 16`, `minPycor = -16`, and `maxPycor = 16`. See `help("worldMatrix-class")` for more details on the `worldMatrix` class.
See `help("worldMatrix-class")` for more details on the `worldMatrix` class.
Wilensky, U. 1999. NetLogo. https://www.netlogo.org. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.
w1 <- createWorld(minPxcor = 0, maxPxcor = 4, minPycor = 0, maxPycor = 4, data = 1:25) plot(w1)
Run the code above in your browser using DataLab