官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 黎川县| 宜川县| 临武县| 马鞍山市| 彭泽县| 马鞍山市| 尚义县| 海宁市| 吉林市| 三原县| 兰考县| 嫩江县| 博客| 泰顺县| 师宗县| 吴江市| 广宁县| 新密市| 皮山县| 桦南县| 罗甸县| 枣阳市| 盐津县| 武定县| 林甸县| 廉江市| 大埔区| 棋牌| 武夷山市| 临湘市| 上饶县| 阳西县| 沂水县| 永嘉县| 汾西县| 赞皇县| 历史| 双流县| 五河县| 定襄县| 霍邱县|