I have a dataframe include 1,2 and bunch of NAs
I would like to compare these columns and save the results in a new column (let's say F) so that: if in each row all values are 1 then the new column get 1 for the same row if all values are 2, then assign 2 for the same row in new column if numbers are different (combination of 1 and 2) assign new number like 3 in the new
Do you have any idea how is it possible to doing so?