How can I calculate the means for each column while keeping the column names the same and make the row index as 1 in R programming?
I used colMeans(nameForMyMatrix) but t