/**
* CSVfileloading
* Author: administrateur
* Description: Shows how to import a CSV file and use it
*/
model CSVfileloading
global {
file my_csv_file <- csv_file("../includes/iris.csv",",");
init {
matrix data <- matrix(my_csv_file);
loop i from: 1 to: data.rows -1{
loop j from: 0 to: data.columns -1{
write "data rows:"+ i +" colums:" + j + " = " + data[j,i];
}
}
}
}
experiment main type: gui{
}
hello--how can I read a csv file as a matrix, and dell with its data as data cell in matrix referenced by (i,j) ?
cheerssuhad
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "GAMA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gama-platform/0hFUK-vwCMA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gama-platfor...@googlegroups.com.