I have a data frame of nearly about 5000 columns. here is the snippet of the data frame
df= data.frame(a=c(13,17,19,7,9),
b=c(1,3,50,NA,3),
c=c(NA,NA,NA,NA,9))
I want to rank the values of the data frame cells w.r.t. rows
EXPECTED OUTPUT
df= data.frame(a=c(1,1,2,1,1),
b=c(2,2,1,NA,2),
c=c(NA,NA,NA,NA,1))