Reorder values across rows and convert duplicates to NA in R I am trying to reorder values rowwise in a dataframe in R.