powered by
World
Report the width of the world in patch number.
world
patch
worldWidth(world)# S4 method for worldNLR worldWidth(world)
# S4 method for worldNLR worldWidth(world)
Integer.
WorldMatrix or worldArray object.
WorldMatrix
worldArray
Sarah Bauduin
Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.
https://ccl.northwestern.edu/netlogo/docs/dictionary.html#world-dim
w1 <- createWorld() worldWidth(w1)
Run the code above in your browser using DataLab