Hi Thanks for contacting us. You should send your email to the netlogo-users group: netlogo-us...@googlegroups.com<mailto:netlogo-us...@googlegroups.com> That group is a forum for users, netlogo-devel is for people working on building and extending the NetLogo platform.
More details from the netlogo-users group This is a forum for discussion about NetLogo<http://ccl.northwestern.edu/netlogo/>, the agent-based modeling environment from the Center for Connected Learning and Computer-Based Modeling at Northwestern University<https://ccl.northwestern.edu/>. Students, teachers, researchers, and independent learners are all welcome. This is a great place to post about how you're using NetLogo, or questions about how to create models using the NetLogo language and software. If you have a programming question, Stack Overflow<http://stackoverflow.com/questions/tagged/netlogo> is another possible place to get help under the NetLogo tag. For questions about creating software using the NetLogo API's, improving the NetLogo application, and creating new extensions for NetLogo, visit the netlogo-devel Google Group<http://groups.google.com/group/netlogo-devel>. Best, Aaron -- Aaron Brandes, Software Developer Center for Connected Learning and Computer-Based Modeling From: <netlogo-devel@googlegroups.com> on behalf of zozo <zahraa2013.1...@gmail.com> Date: Wednesday, May 20, 2020 at 4:45 PM To: netlogo-devel <netlogo-devel@googlegroups.com> Subject: [netlogo-devel] ranking Hello everyone, I have a file of type csv It contains a set of values, and I try to rank you for these values , as in Excel( * Set ranking[0] to 1. * For each index i in the score-list * If score[i] equals score[i-1] they should have same ranknig: * ranking[i] = ranknig[i-1] * else the ranking should equal the current index: * ranking[i] = i + 1 (+ 1 due to 0-based indecies and 1-based ranking) and I tried some code extensions [csv] globals [data variable] turtles-own [var ] to setup file-close-all file-open "test1.csv" ;; read the data all at once by using csv:from-file set data csv:from-file "test1.csv" reset-ticks end to ranking if file-at-end? [stop] ;; extract value from the list, using item 0 to remove the list, and just keep the value set variable item 0 item ticks data if ticks = length data [stop] let rank-list sort-on [variable] turtles let ranks n-values length rank-list [ ] (foreach rank-list ranks [ask ?1 [set variable 2] ] ) tick ;show variable end , but I did not succeed with netlogo(6.1) any help plez -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-devel+unsubscr...@googlegroups.com<mailto:netlogo-devel+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-devel/f57ce446-8b18-4dc6-9029-49a4862d8498%40googlegroups.com<https://urldefense.com/v3/__https:/groups.google.com/d/msgid/netlogo-devel/f57ce446-8b18-4dc6-9029-49a4862d8498*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Dq0X2DkFhyF93HkjWTBQKhk!FYd9CL5s4LD7YQOtQ1vdNNTe7-T6ONeWzcGW5hdkDPgZMm3i8hkv8lgmB1H22Tw8laIaYZWtiA$>. -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-devel/D134E3B5-E24D-40EE-91D7-C38A74B0F6EB%40ads.northwestern.edu.