Last chance! 50% off unlimited learning
Sale ends in
NLDfToList
function is used to push the values of a data.frame in NetLogo-Lists.
The column names of the data.frame are used as names for the NetLogo-Lists
(but the NetLogo-List must already exist in the current NetLogo model).NLDfToList(in.data.frame, nl.obj=NULL)
NLStart
.NLDoCommand
,
NLDoCommandWhile
,
NLReport
NLStart("C:/Program Files/NetLogo 4.1.3")
df1 <- data.frame(x=c(1,2,3,4),y=c(1,2,3,4))
# the current NetLogo model must have lists with the names 'x' and 'y'
NLDfToList(df1)
Run the code above in your browser using DataLab