Hi all,
I'm trying to set up code that will allow me to do the following:
Read in a csv file,
In columns 3 and 5 there is similar information, I want to count how many times each unique entry is in either of these columns. For example:
col 3: col 5:
1 6
2 4
1 2
2 1
3 8
4 9
5 3
3 1
5 6
6 6
6 6
4 3
6 4
6 4
6 4
6 5
6 6
6 8
6 1
6 9
From these two columns i would think that 6 is the most common (Although I haven't checked!) But with perl is it possible to count how often each unique value appears in both column 3 and 5 and then grep all the data so that just lines that contain the most common value will appear?
Hope that makes sense!
Thanks