R語言(第2版)

《R語言(第2版)》是清華大學出版社2022年出版的圖書,作者是劉鵬、程顯毅、孫麗麗、林道榮。

基本介紹

  • 中文名:R語言(第2版)
  • 作者:劉鵬、程顯毅、孫麗麗、林道榮
  • 出版社:清華大學出版社
  • 出版時間:2022年7月1日
  • 定價:59 元
  • ISBN:9787302610229
內容簡介,作者簡介,圖書目錄,

內容簡介

本書通過Titanic 數據分析案例,深入淺出地介紹了R語言在大數據分析套用中的相關知識,包括:數據準備、數據清洗、數據探索、數據變換、特徵工程、數據建模、模型評估、模型部署等。全書共13章,第1~3 章介紹R語言的開發環境和基本語法;第4~8 章按數據分析生命周期討論R語言的實現;第9 章高級編程相對獨立,主要解決複雜問題可能用到的程式結構;第10、11 章與機器學習有關,內容偏難,但通過Rattle 包迴避了算法底層技術的難點;第12、13 章通過兩個實際項目,讓讀者體驗數據處理的全過程以及業務對分析的重要性。本書力求以簡潔、精練、理論與實踐相結合的方式,讓讀者快速掌握R 語言。本書既可作為數據分析相關課程的教材,也可作為數據分析愛好者的參考資料。

作者簡介

劉鵬,清華大學博士畢業,現任南京雲創大數據科技股份有限公司總經理,兼任中國大數據套用聯盟人工智慧專家委員會主任、中國信息協會教育分會人工智慧專家委員會主任、教育部全國普通高校畢業生就業創業指導委員會委員、第45屆世界技能大賽中國區雲計算選拔賽裁判長/專家指導組組長、2019年全國大學生數據建模比賽命題人、工信部雲計算研究中心專家。
程顯毅,工學博士,南通大學教授。矽湖職業技術學院特聘教授。江蘇省人工智慧學會監事會監事,江蘇省微電腦學會人工智慧專委會副主任委員。長期從事人工智慧、自然語言理解領域的教學研究工作。主持國家自然科學基金項目2項。發表論文100多篇、出版教材6部、專著5部。

圖書目錄

第1 章 緒論
1.1 R 語言概述 ···································································· 1
1.1.1 R 語言現狀 ··································································· 1
1.1.2 R 語言主要優勢 ····························································· 2
1.1.3 學R 語言的理由 ····························································· 3
1.2 新手上路 ······································································· 4
1.3 R 語言開發環境部署 ························································ 5
1.3.1 安裝R ········································································· 5
1.3.2 安裝RStudio ·································································· 6
1.4 獲取幫助 ······································································· 8
1.5 工作空間 ······································································· 8
1.6 腳本 ············································································· 9
1.7 R 包 ············································································· 9
習題 ··················································································· 10
第2 章 基本語法
2.1 變數 ············································································ 11
2.1.1 變數及其作用 ······························································ 11
2.1.2 變數命名 ···································································· 12
2.1.3 變數賦值 ···································································· 12
2.1.4 變數值輸出 ································································· 12
2.2 常量 ············································································ 13
2.2.1 邏輯常量 ···································································· 13
2.2.2 符號常量 ···································································· 13
2.2.3 標量 ·········································································· 13
2.3 向量 ············································································ 15
2.3.1 向量產生 ···································································· 15
2.3.2 向量引用 ···································································· 16
2.3.3 向量化運算 ································································· 16
XII R 語言(第2 版)
2.3.4 向量排序 ···································································· 17
2.4 運算符 ········································································· 18
2.4.1 算術運算符 ································································· 18
2.4.2 關係運算符 ································································· 18
2.4.3 邏輯運算符 ································································· 19
2.4.4 其他運算符 ································································· 20
2.5 命令 ············································································ 20
2.6 重要內置函式 ································································ 21
習題 ··················································································· 23
第3 章 數據類型
3.1 基本數據類型 ································································ 27
3.2 結構數據類型 ································································ 28
3.2.1 矩陣 ·········································································· 28
3.2.2 數組 ·········································································· 30
3.2.3 數據框 ······································································· 32
3.2.4 因子 ·········································································· 33
3.2.5 列表 ·········································································· 34
3.3 字元串操作 ··································································· 35
3.3.1 分割 ·········································································· 35
3.3.2 拼接 ·········································································· 35
3.3.3 正則表達式 ································································· 36
3.3.4 替換 ·········································································· 39
3.3.5 提取 ·········································································· 42
3.3.6 測定字元串長度 ··························································· 42
3.3.7 匹配 ·········································································· 43
3.4 數據類型判斷和轉換 ······················································· 43
3.5 日期和時間數據操作 ······················································· 44
3.5.1 日期數據基本操作 ························································ 44
3.5.2 時間數據基本操作 ························································ 45
習題 ··················································································· 45
第4 章 數據導入導出
4.1 數據導入 ······································································ 49
4.1.1 鍵盤輸入數據 ······························································ 49
目 錄 XIII
4.1.2 導入文本檔案 ······························································ 50
4.1.3 導入csv 檔案 ······························································· 51
4.1.4 導入Excel 檔案 ···························································· 51
4.1.5 導入資料庫檔案 ··························································· 51
4.2 數據導出 ······································································ 52
4.2.1 導出文本檔案 ······························································ 52
4.2.2 保存圖片 ···································································· 53
習題 ··················································································· 53

相關詞條

熱門詞條

聯絡我們