I have a data frame with three columns and four rows. I want to create a new column based on available columns such that new column gets the maximum value of the corresponding row (no matter if there is NA or not). If all are NAs, the new column gets NA. enter image description here
Thanks.