- 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.
推薦閱讀
- C語言程序設(shè)計實踐教程(第2版)
- Machine Learning with R Cookbook(Second Edition)
- PHP+MySQL網(wǎng)站開發(fā)項目式教程
- MySQL數(shù)據(jù)庫基礎(chǔ)實例教程(微課版)
- R Data Analysis Cookbook(Second Edition)
- Java EE 8 Application Development
- 劍指Java:核心原理與應(yīng)用實踐
- 從零開始學(xué)C語言
- C語言程序設(shè)計實驗指導(dǎo) (第2版)
- Spring Boot+Vue全棧開發(fā)實戰(zhàn)
- C++ Fundamentals
- 移動增值應(yīng)用開發(fā)技術(shù)導(dǎo)論
- Practical Responsive Typography
- Java EE 程序設(shè)計
- 新手學(xué)ASP.NET 3.5網(wǎng)絡(luò)開發(fā)