- Modern R Programming Cookbook
- Jaynal Abedin
- 127字
- 2021-07-08 09:48:34
Getting ready
Recall that you have created several R objects in the prior recipes, such as vector, matrix, data frame, and array. Now, you are in a position to create another single R object that could contain all the objects that you have already created and then want to access those as needed. To get ready for this recipe, let's re-run those lines of code and create those objects again:
cVec <- c("Cricket", "Football", "Basketball", "Rugby")
nVec <- c(1:10)
Lvec <- c(TRUE, FALSE, FALSE, TRUE)
matA <- matrix(1, nrow=2, ncol=2)
datA <- data.frame(ID = 1:5, hourSpetOnInternet = c(5,3,4,1,2),
GENDER = c("M", "F", "F", "M", "F"))
arrayA <- array(1:16, dim=c(2,2,4))
In this recipe, you will organize these heterogeneous objects into a single R object that is called list.
推薦閱讀
- Python概率統計
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- React Native Cookbook
- Learn React with TypeScript 3
- Keras深度學習實戰
- PySpark Cookbook
- Java SE實踐教程
- 深入淺出Go語言編程
- INSTANT LESS CSS Preprocessor How-to
- Python Penetration Testing Essentials
- C語言程序設計實驗指導
- TypeScript High Performance
- JSP項目開發情境教程
- Python游戲編程項目開發實戰
- 數據結構案例教程:C語言版