- Modern R Programming Cookbook
- Jaynal Abedin
- 262字
- 2021-07-08 09:48:29
Introduction
To use R most efficiently and effectively, you must understand the data types and data structures of R, because the Machine Learning algorithms such as Support Vector Machine (SVM), decision tree, and even linear regression and logistic regression have optimization components. The use of the correct data types is the key part of the performance of optimization. Also, to perform matrix operations, the user must use matrix data types. Moreover, the user needs to know the use of correct variables into the statistical model, and understanding R data types is the important aspect in this area. Here are the data types that will help you store and manage your data correctly and efficiently:
- Character
- Numeric
- Logical
- Integer
- Complex
The data structure of R is the way to organize the dataset for data storage and analytics purposes. Each of the different data structures can contain certain types of data. The following are the most popular and primary structures in R:
- Vector: This can contain only one type of data
- Matrix: This contains only one type of data but in two-dimensional representation
- Array: This contains only one type of data and it can store data with more than two dimensional structure
- Data frame: This can contain mixed types of data, and it is also a two-dimensional representation
- List: This can contain heterogeneous data, including vector, matrix, data frames, and even the list itself
By going through each of the recipes in this chapter, you will learn to create, modify, and access the properties, and perform certain operations on various types of data.
- Mastering Objectoriented Python
- Python從菜鳥到高手(第2版)
- C#程序設計(慕課版)
- Python數據結構與算法(視頻教學版)
- 持續集成與持續交付實戰:用Jenkins、Travis CI和CircleCI構建和發布大規模高質量軟件
- Learning JavaScript Data Structures and Algorithms(Second Edition)
- ActionScript 3.0從入門到精通(視頻實戰版)
- Python程序設計開發寶典
- 微前端設計與實現
- 深入理解Kafka:核心設計與實踐原理
- Mastering Bootstrap 4
- 零基礎C語言學習筆記
- Node.js Web Development
- Mathematica Data Visualization
- 零基礎學Java(升級版)