How to convert data frames into matrices in R language
This article mainly introduces how to convert the data frame into a matrix in R language, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article.
Convert the data frame to a matrix
If the data type in the data box is the same, you can use as.matrix to convert it to a matrix
Df