I have some data with four columns each and I want to keep the unique lines based on only the first 3 columns and retain their respective fourth column of maximum value also.
My data looks looks like the following:
chr1 5 10 1.5
chr1 5 10 0.1
chr3 7 15 5
chr3 7 15 2
chr8 10 20 3
Could you please assist me on achieving this? I need the output to look like the following:
chr1 5 10 1.5
chr3 7 15 5
chr8 10 20 3