- 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.
推薦閱讀
- Web程序設計及應用
- ExtGWT Rich Internet Application Cookbook
- 兩周自制腳本語言
- Learning Neo4j 3.x(Second Edition)
- JavaScript by Example
- Monitoring Elasticsearch
- C語言實驗指導及習題解析
- Clojure Reactive Programming
- Python Web數據分析可視化:基于Django框架的開發實戰
- Mastering openFrameworks:Creative Coding Demystified
- C#程序設計(項目教學版)
- IDA Pro權威指南(第2版)
- App Inventor 2 Essentials
- 計算機應用技能實訓教程
- 關系數據庫與SQL Server 2012(第3版)