`right.Rd`

Rotate the `turtles`

's headings to the right of `angle`

degrees.

right(turtles, angle) # S4 method for agentMatrix,numeric right(turtles, angle)

turtles | AgentMatrix object representing the moving agents. |
---|---|

angle | Numeric. Vector of angles in degrees by which to rotate the |

AgentMatrix representing the `turtles`

with updated "heading" values.

If a given `angle`

value is negative, then the turtle rotates to the left.

Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.

w1 <- createWorld(minPxcor = 0, maxPxcor = 4, minPycor = 0, maxPycor = 4) t1 <- createTurtles(n = 10, world = w1) of(agents = t1, var = "heading")#> [1] 116.60476 274.79901 57.43871 236.72740 193.20493 24.08878 241.04943 #> [8] 39.80003 60.79073 332.26980#> [1] 296.60476 94.79901 237.43871 56.72740 13.20493 204.08878 61.04943 #> [8] 219.80003 240.79073 152.26980