mercredi 29 avril 2015

Choose highest number in dataframe columns

I have a list with 10 dataframes with each 6 columns and 5553 rows.

Two of the columns are numeric. I want to compare those two columns row by row and pick the highest number and put in a 7th column or as a vector. I have tried different ifelse options and also if statements, but nothing seems to work.

Aucun commentaire:

Enregistrer un commentaire