I have 77 numeric variables which are technically ordered factor variables.
I know that I can do the below for changing the first column of data frame df
into an ordered factor variable:
df[,1]<-as.ordered(df[,1])
But is there a quick way that I can turn the entire data frame of 77 variables into a data frame of ordered factor variables?
Thank you,