I was wondering if someone knows if there's an easy and smart way to revert a matrix (that was generated by calling "model.matrix" on a data frame) back into a data.frame? The reason being that I am using the matrix in a function where the original data frame is not in the scope and I want to try something with the data frame without modifying the whole code (before I know if what I'm trying is even useful ).
Thanks in advance!