Description Usage Arguments Details Value Author(s) References See Also Examples
Report the coordinates of the patches
at the given [x, y]
locations.
1 2 3 4 
world 

x 
Numeric. Vector of 
y 
Numeric. Vector of 
duplicate 
Logical. If more than one location 
torus 
Logical to determine if the 
out 
Logical. If 
If a location [x, y]
is outside the world
's extent and
torus = FALSE
and out = FALSE
, no patch
coordinates are returned;
if torus = FALSE
and out = TRUE
, NA
are returned;
if torus = TRUE
, the patch
coordinates from a wrapped world
are
returned.
Matrix (ncol
= 2) with the first column pxcor
and the second column
pycor
representing the patches
coordinates at [x, y]
.
Sarah Bauduin
Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and ComputerBased Modeling, Northwestern University. Evanston, IL.
https://ccl.northwestern.edu/netlogo/docs/dictionary.html#patch
1 2 3 4 5 6 7 8  w1 < createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9)
patch(world = w1, x = c(0, 9.1, 8.9, 5, 5.3), y = c(0, 0, 0.1, 12.4, 12.4))
patch(world = w1, x = c(0, 9.1, 8.9, 5, 5.3), y = c(0, 0, 0.1, 12.4, 12.4),
duplicate = TRUE)
patch(world = w1, x = c(0, 9.1, 8.9, 5, 5.3), y = c(0, 0, 0.1, 12.4, 12.4),
torus = TRUE)
patch(world = w1, x = c(0, 9.1, 8.9, 5, 5.3), y = c(0, 0, 0.1, 12.4, 12.4),
torus = TRUE, duplicate = TRUE)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.