turtlesOwn | R Documentation |
turtles
variableCreate a new variable for the turtles
.
turtlesOwn(turtles, tVar, tVal)
## S4 method for signature 'agentMatrix,character,missing'
turtlesOwn(turtles, tVar)
## S4 method for signature 'agentMatrix,character,ANY'
turtlesOwn(turtles, tVar, tVal)
turtles |
|
tVar |
Character. the name of the |
tVal |
Vector representing the values of |
AgentMatrix
representing the turtles
with the new
variable tVar
added.
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#turtles-own
t1 <- createTurtles(n = 5, coords = cbind(xcor = 0, ycor = 0))
t1 <- turtlesOwn(turtles = t1, tVar = "sex", tVal = c("F", "F", "F", "M", "M"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.