NLStart("C:/Program Files/NetLogo 4.1.3")
NLCommand("create-turtles 10")
colors <- NLGetAgentSet(c("who","xcor","ycor","color"),
"turtles with [who < 5]")
# it's equivalent to (but unsorted):
# colors <- NLReport("[(list who xcor ycor color)] of turtles
# with [who < 5]")
Run the code above in your browser using DataLab