mercredi 18 avril 2018

how to find the max. value in a specific row with a preceding if statement determining that specific row

hope my stated question isn't misleading.

what im trying to figure out is,lets say the data file looks similar to this:

id; name; values
1;alpha;0.5;0.78;0.945
2;beta;0.2;0.023;0.4
3;gamma;0.78;1.342;4.123
4;delta;2.1;4.90;0.89

...

Based on a given name, lets say "gamma" the largest value relating to gamma should be determined, thus 4.123 . In my case, I got several files where I wanna apply a for-loop, but i'm struggling with the question how to set up the if statement for gamma.

Appreciate your help.

Cheers, Olli

Aucun commentaire:

Enregistrer un commentaire