Hi all,
I have a question about using the csv extension in NetLogo. I would like to export a .csv file using the csv extension. However, my output is per tick and when using csv: to-file it only writes the last tick. It's like csv:to-file would delete previous ticks. I looked for ways not to delete and couldn't find a solution. Does anyone know if it is possible to use csv: to-file per tick, without erasing previous ticks? I need to use csv because I am working with lists. OBS.: It is not possible to accumulate the values generated at each iteration, as the list would be large and ended up having a memory problem
Thanks in advance
Below is a code showing that csv: to-file deletes the previous information (only the values 5.6 and 7.8 appear in the file
to test
csv:to-file (" test-1.csv" ) [ [1 2] [ 3 4 ] ]
csv:to-file (" test-1.csv" ) [ [5 6] [ 7 8 ] ]
end