I hope somebody might help me with this. Please help me! :)
Data from csv-file:
Region Municipio laboratorio clinica Sospechosos Total casos
AMAZONAS AMAZONAS 0 0 6 6
AMAZONAS EL ENCANTO 0 0 0 0
ANTIOQUIA ABEJORRAL 0 0 2 2
ANTIOQUIA ABRIAQUI 0 0 0 0
ARAUCA ARAUCA 6 13 0 19
ARAUCA DESCONOCIDO 0 0 0 0
ARAUCA ARAUQUITA 1 12 0 13
ARAUCA TAME 2 1 0 3
ATLANTICO ATLANTICO 0 0 4 4
ATLANTICO BARANOA 1 9 0 10
AMAZONAS PUERTO 0 0 0 0
AMAZONAS TARAPACA 0 0 0 0
BOLIVAR ARENAL 0 0 29 29
BOLIVAR ARJONA 3 8 0 11
Task 1)
I need to create a function - extractDataFromFile(filename) that reads all the lines/rows in the csv-file.
Task 2)
The next function getRegionData(), must extract data (laboratorio, clinica, Sospechosos, Total casos) from each region using the previous function.
I have worked on this for a week now and I'm pretty lost. :( Hope you guys can help me ;)