NLCommand {RNetLogo} | R Documentation |
NLCommand
executes a NetLogo command (submitted as a string)
in the (submitted) NetLogo instance.
NLCommand(..., nl.obj=NULL)
... |
An undefined number of strings with the NetLogo command(s) to be executed.
Vectors, lists and data.frames will be represented as NetLogo lists. To set a NetLogo list you can write |
nl.obj |
(optional) A string identifying a reference to a NetLogo instance created with |
The command can be anything which can be submitted from the NetLogo Command Center.
A command has no return value! If you want to return a value from NetLogo use NLReport
and other report functions.
No return value.
Jan C. Thiele <rnetlogo@gmx.de>
NLDoCommand
,
NLDoCommandWhile
,
NLReport
## Not run:
NLStart("C:/Program Files/NetLogo 6.0/app")
NLCommand("create-turtles 10")
## End(Not run)