- Modern R Programming Cookbook
- Jaynal Abedin
- 48字
- 2021-07-08 09:48:35
Getting ready
To convert a matrix to a data frame and a data frame to a matrix, first, create a matrix and a data frame to get started, as follows:
M1 <- matrix(1:9, nrow=3, ncol= 3, byrow=TRUE)
D1 <- data.frame(x1= c(1,3,2,4,5), x2= c("Cricket", "Football",
"Basketball", "Rugby", "Baseball" ))
推薦閱讀
- Flask Web全棧開發(fā)實(shí)戰(zhàn)
- UI設(shè)計(jì)基礎(chǔ)培訓(xùn)教程
- Access 數(shù)據(jù)庫應(yīng)用教程
- PyTorch Artificial Intelligence Fundamentals
- HTML5入門經(jīng)典
- Mastering ServiceNow(Second Edition)
- JAVA程序設(shè)計(jì)實(shí)驗(yàn)教程
- HTML5 APP開發(fā)從入門到精通(微課精編版)
- PHP從入門到精通(第4版)(軟件開發(fā)視頻大講堂)
- 從零開始:C語言快速入門教程
- H5+移動(dòng)營銷設(shè)計(jì)寶典
- Java Web開發(fā)教程:基于Struts2+Hibernate+Spring
- Developing Java Applications with Spring and Spring Boot
- HTML5 WebSocket權(quán)威指南
- LabVIEW入門與實(shí)戰(zhàn)開發(fā)100例(第4版)