All functions

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

NetLogoR-package

The NetLogoR package

PxcorPycorFromCell()

Patches coordinates from cells numbers

`[[`(<worldArray>,<ANY>,<ANY>) `[[<-`(<worldArray>,<ANY>,<ANY>,<ANY>) `$`(<worldArray>)

Subsetting for worldArray class

agentClasses-class

A meta class for agentMatrix and SpatialPointsDataFrame

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

extent(<worldNLR>) extent(<agentMatrix>) .bboxCoords() bbox(<agentMatrix>) `bbox<-`() bbox(<worldNLR>)

Bounding box and extent methods for NetLogoR classes

bk()

Move backward

canMove()

Can the turtles move?

cellFromPxcorPycor()

Cells numbers from patches coordinates

clearPatches()

Clear world's patches

coordinates(<agentMatrix>)

Set spatial coordinates

createOTurtles()

Create ordered turtles

createTurtles()

Create turtles

createWorld()

Create a world

die()

Kill turtles

diffuse()

Diffuse values in a world

downhill()

Move downhill

dx()

x-increment

dy()

y-increment

`[`(<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

fargs

Function arguments

fd()

Move forward

hatch()

Hatch new turtles

home()

Return home

inCone()

Agents in cone

inRadius()

Agents in radius

initialize(<agentMatrix>)

Initialize for agentMatrix Class

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

nOf()

N random agents

neighbors()

Neighbors patches

noPatches()

No patches

noTurtles()

No turtles

of()

Values of an agents variable

oneOf()

One random agent

other()

Others

pExist()

Do the patches exist?

patch()

Patches coordinates

patchAhead()

Patches ahead

patchAt()

Patches at

patchDistDir()

Patches at given distances and directions

patchHere()

Patches here

patchLeft()

Patches on the left

patchRight()

Patches on the right

patchSet()

Patch set

patches()

All the patches in a world

plot(<agentMatrix>) plot(<worldMatrix>) plot(<worldArray>) points(<agentMatrix>)

Basic plot methods for `agentMatrix`, `worldMatrix`, `worldArray`

numLayers(<worldArray>) .plotGrob(<agentMatrix>) layerNames(<worldArray>) .identifyGrobToPlot(<worldArray>,<.quickPlotGrob>)

Methods for quickPlot

randomPxcor()

Random pxcor

randomPycor()

Random pycor

randomXYcor()

Random turtles coordinates

randomXcor()

Random xcor

randomYcor()

Random ycor

raster2world()

Convert a Raster* object into a worldMatrix or worldArray object

right()

Rotate to the right

setXY()

Set turtles' locations

show(<worldArray>) show(<worldMatrix>)

Key base R functions for worldNLR classes

sortOn()

Sort agents

spdf2turtles()

From SpatialPointsDataFrame to agentMatrix

sprout()

Sprout new turtles

stackWorlds()

Stack worlds

subHeadings()

Subtract headings

tExist()

Do the turtles exist?

towards()

Directions towards

turtle()

Select turtles

turtleSet()

Create a turtle agentset

turtles2spdf()

From agentMatrix to SpatialPointsDataFrame

turtlesAt()

Turtles at

turtlesOn()

Turtles on

turtlesOwn()

New turtles variable

updateList()

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

worldArray-class

The worldArray class

worldHeight()

World height

worldMatrix-class

The worldMatrix class

worldNLR-class

The worldNLR class

worldWidth()

World width

wrap()

Wrap coordinates or pixels in a torus-like fashion