| clearPatches | R Documentation |
world's patchesReset all patches values to NA.
clearPatches(world)
## S4 method for signature 'worldMatrix'
clearPatches(world)
## S4 method for signature 'worldArray'
clearPatches(world)
world |
|
WorldMatrix object with NA values for all patches.
Sarah Bauduin
Wilensky, U. 1999. NetLogo. https://www.netlogo.org. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.
https://docs.netlogo.org/dictionary.html#clear-patches
w1 <- createWorld()
w1 <- NLset(world = w1, agents = patches(w1), val = runif(NLcount(patches(w1))))
w1Val <- of(world = w1, agents = patches(w1))
summary(w1Val)
w1 <- clearPatches(w1)
w1Val <- of(world = w1, agents = patches(w1))
summary(w1Val)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.