I want to export all of the individual turtle properties to a csv file at setup and then at the end of the run.
I have tried to modify the csv model to accomplish this, but but am new to netlogo and to coding and as such, am having difficulty determining how and what code to write. I understand this part of the code:
to write-turtles-to-csv
; we use the of primitive to make a list of lists and then
; use the csv extension to write that list of lists to a file.
csv:to-file "turtles.csv" [ (list xcor ycor size color heading) ] of turtles
end
But am not sure how to write the code to gather the individual turtle properties for all of the turtles (I am looking for the properties that are displayed when one "inspects" an individual turtle).
I am working with the conspiracy theory model and would like to analyze both of those sets of data along with the initial set of slider parameters.
I would appreciate any info/direction that can be provided.
Thanks