R: `ID : Coercing LHS to a list` in adding an ID column, why?
It’s throwing a warning, as the results of transpose t() are a matrix. Matricies don’t have accessible column names. You have to coerce the matrix to a data frame before you make the ID assignment, using as.data.frame() This works. Remember that data frames are defined column-wise and not row-wise. A data frame definition should be … Read more