cbind(<agentMatrix>) rbind(<agentMatrix>)
|
Combine R Objects by Rows or Columns |
agentMatrix-class
|
The agentMatrix class |
`==`(<agentMatrix>,<character>) `==`(<agentMatrix>,<numeric>)
|
Relational Operators |
show(<agentMatrix>) length(<agentMatrix>) nrow(<agentMatrix>) head(<agentMatrix>) tail(<agentMatrix>)
|
Key base R functions for agentMatrix class |
agentMatrix()
|
Create a new agentMatrix object |
bbox() `bbox<-`()
|
Extract or set bounding box |
bk()
|
Move backward |
canMove()
|
Can the turtles move? |
cellFromPxcorPycor()
|
Cells numbers from patches coordinates |
clearPatches()
|
Clear world 's patches |
coordinates(<agentMatrix>)
|
Spatial accessors and setters for NetLogoR classes |
createOTurtles()
|
Create ordered turtles |
createTurtles()
|
Create turtles |
createWorld()
|
Create a world |
die()
|
Kill turtles |
diffuse()
|
Diffuse values in a world |
.bboxCoords()
|
.bboxCoords is a drop in replacement for raster::.bboxCoords .
|
downhill()
|
Move downhill |
dx()
|
x-increment |
dy()
|
y-increment |
extent(<worldNLR>) extent(<agentMatrix>)
|
Bounding box and extent methods for NetLogoR classes |
`[`(<worldMatrix>,<numeric>,<numeric>,<ANY>) `[`(<worldMatrix>,<missing>,<missing>,<ANY>) `[<-`(<worldMatrix>,<numeric>,<numeric>,<ANY>) `[<-`(<worldMatrix>,<missing>,<missing>,<ANY>) `[`(<worldArray>,<numeric>,<numeric>,<ANY>) `[`(<worldArray>,<missing>,<missing>,<ANY>) `[<-`(<worldArray>,<numeric>,<numeric>,<matrix>) `[<-`(<worldArray>,<missing>,<missing>,<matrix>) `[`(<agentMatrix>,<numeric>,<numeric>,<ANY>) `[`(<agentMatrix>,<logical>,<missing>,<ANY>) `[`(<agentMatrix>,<numeric>,<missing>,<ANY>) `[`(<agentMatrix>,<missing>,<missing>,<missing>) `[`(<agentMatrix>,<missing>,<character>,<ANY>) `[`(<agentMatrix>,<numeric>,<character>,<ANY>) `[`(<agentMatrix>,<missing>,<numeric>,<ANY>) `[<-`(<agentMatrix>,<numeric>,<numeric>,<numeric>) `[<-`(<agentMatrix>,<missing>,<numeric>,<numeric>) `[<-`(<agentMatrix>,<numeric>,<missing>,<numeric>) `[<-`(<agentMatrix>,<numeric>,<character>,<data.frame>) `[<-`(<agentMatrix>,<numeric>,<numeric>,<character>) `[<-`(<agentMatrix>,<missing>,<numeric>,<character>) `[<-`(<agentMatrix>,<missing>,<character>,<character>) `[<-`(<agentMatrix>,<numeric>,<character>,<character>) `$`(<agentMatrix>)
|
Extract or Replace Parts of an Object |
face()
|
Face something |
fd()
|
Move forward |
hatch()
|
Hatch new turtles |
home()
|
Return home |
inCone()
|
Agents in cone
|
initialize(<agentMatrix>)
|
Initialize for agentMatrix Class |
inRadius()
|
Agents in radius
|
inspect()
|
Inspect turtles |
isNLclass()
|
Type of object |
layoutCircle()
|
Layout turtles on a circle |
left()
|
Rotate to the left |
maxNof()
|
N agents with maximum
|
maxOneOf()
|
One agent with maximum |
maxPxcor()
|
Maximum pxcor |
maxPycor()
|
Maximum pycor |
minNof()
|
N agents with minimum
|
minOneOf()
|
One agent with minimum |
minPxcor()
|
Minimum pxcor |
minPycor()
|
Minimum pycor |
moveTo()
|
Move to |
neighbors()
|
Neighbors patches |
NetLogoR NetLogoR-package
|
The NetLogoR package |
NLall()
|
All agents? |
NLany()
|
Any agents? |
NLcount()
|
Count agents |
NLdist()
|
Distances between agents |
NLset()
|
Set an agents variable |
NLwith()
|
Agents with
|
NLworldIndex()
|
WorldMatrix indices from vector indices
|
nOf()
|
N random agents |
noPatches()
|
No patches |
noTurtles()
|
No turtles |
of()
|
Values of an agents variable |
oneOf()
|
One random agent |
other()
|
Others |
patch()
|
Patches coordinates
|
patchAhead()
|
Patches ahead
|
patchAt()
|
Patches at
|
patchDistDir()
|
Patches at given distances and directions
|
patches()
|
All the patches in a world |
patchHere()
|
Patches here
|
patchLeft()
|
Patches on the left
|
patchRight()
|
Patches on the right
|
patchSet()
|
Patch set
|
pExist()
|
Do the patches exist? |
plot(<agentMatrix>) plot(<worldMatrix>) plot(<worldArray>) points(<agentMatrix>)
|
Basic plot methods for agentMatrix , worldMatrix , worldArray |
PxcorPycorFromCell()
|
Patches coordinates from cells numbers
|
numLayers(<worldArray>) numLayers(<worldMatrix>) layerNames(<worldArray>) .identifyGrobToPlot(<worldArray>,<.quickPlotGrob>)
|
Methods for quickPlot |
randomPxcor()
|
Random pxcor |
randomPycor()
|
Random pycor |
randomXcor()
|
Random xcor |
randomXYcor()
|
Random turtles coordinates |
randomYcor()
|
Random ycor |
raster2world()
|
Convert a Raster* object into a worldMatrix or worldArray object |
right()
|
Rotate to the right |
setXY()
|
Set turtles ' locations |
sf2turtles()
|
From sf to agentMatrix |
show(<worldArray>) show(<worldMatrix>)
|
Key base R functions for worldNLR classes |
sortOn()
|
Sort agents |
spatRast2world()
|
Convert a SpatRaster object into a worldMatrix or worldArray object |
spdf2turtles()
|
From SpatialPointsDataFrame to agentMatrix |
sprout()
|
Sprout new turtles |
stackWorlds()
|
Stack worlds |
subHeadings()
|
Subtract headings |
`[[`(<worldArray>,<ANY>,<missing>) `[[<-`(<worldArray>,<ANY>,<missing>) `$`(<worldArray>)
|
Subsetting and replacing for worldArray class |
tExist()
|
Do the turtle exist? |
towards()
|
Directions towards |
turtle()
|
Select turtles |
turtles2sf()
|
From agentMatrix to sf |
turtles2spdf()
|
From agentMatrix to SpatialPointsDataFrame |
turtlesAt()
|
Turtles at
|
turtleSet()
|
Create a turtle agentset |
turtlesOn()
|
Turtles on
|
turtlesOwn()
|
New turtles variable |
updateList updateList,list,list-method updateList,NULL,list-method updateList,list,NULL-method updateList,NULL,NULL-method
|
Update elements of a named list with elements of a second named list |
uphill()
|
Move uphill |
withMax()
|
Agents with maximum
|
withMin()
|
Agents with minimum
|
world2raster()
|
Convert a worldMatrix or worldArray object into a Raster* object |
world2spatRast()
|
Convert a worldMatrix or worldArray object into a SpatRaster object |
worldArray-class worldArray
|
The worldArray class |
worldHeight()
|
World height
|
worldMatrix-class worldMatrix
|
The worldMatrix class |
worldNLR-class worldNLR
|
The worldNLR class |
worldWidth()
|
World width
|
wrap()
|
Wrap coordinates or pixels in a torus-like fashion |