My dataset is the following:
Image Product_lifestyle Product_people Product_text Product_front Product_top Actual
Image_001 0.4 0.1 0.15 0.15 0.1 Product_lifestyle
Image_002 0.35 0.34 0.05 0.21 0.05 Product_people
But I would like to add another column in this dataset. The column name is predicted. The values are like actual, which is given, but predicted is the maximum of the value from column 2:5.
Like predicted of row 1 is Product_lifestyle
and predicted of row 2 is Product_people
Kindly help me to do it in R