I would like to save a table of attributes of all my agents, just like the one the could be shown by clicking "Agents > Simulation > Population of agents".
I have tried the button "Save the agents and their attributes into a CSV file". But then I got all the attributes of each agent saved in a single column.
Then, I tried to write codes to save the attributes, according to this example:
https://gama-platform.github.io/wiki/Save-statement-Save_to_CSV.html
But I could only record the attributes of the last agent.
Any suggestion?
Thanks in advance.