Learning R cover

Learning R

Rating 3.8
Word count
532K words
Chapters
28
Series
Turing Programming Series
ISBN
9787115351708

Tags

Summary

Learning R is an introductory R tutorial by data scientist Richard Cotton, written for readers with no programming background. The Chinese edition was translated by Liu Jun and published by Posts & Telecom Press as part of its Turing Programming Series. The book is divided into three parts. Part One, "The R Language," explains data types and programming concepts chapter by chapter, from installing R and choosing an IDE and using R as a scientific calculator, to inspecting variables and the workspace, vectors, matrices and arrays, lists and data frames, environments and functions, strings and factors, flow control and loops, advanced loops, installing and using packages, and working with dates and times. Part Two, "The R Workflow," moves into practice, linking the standard workflow end to end: getting data, cleaning and transforming data, exploring and visualizing, distributions and modeling, programming, and building packages. Part Three consists of appendices covering attributes of variables, other things R can do, and answers to the questions and exercises in each chapter. Every chapter includes quizzes and hands-on exercises that require writing R code, helping readers consolidate what they learn as they type. The author has long worked in data science and has developed R packages such as assertive and sig; the explanations stay close to real-world usage, making the book suitable as a first book for systematically self-studying R and data analysis.

Editor's review

很多 R 语言书一上来就讲统计模型,新手往往连向量和数据框都还没摸清就陷入了公式。这本书的选择恰恰相反:先把 R 当成一门语言来讲透。作者用“科学计算器”这样朴素的例子切入,把向量、矩阵、数组、列表、数据框、因子、函数、循环这些概念一章一章拆开,每章末尾配小测验和需要敲代码的练习题,读一章、练一章,节奏非常清楚。 更难得的是它的后半部分。第十一章之后,作者带着读者走完一条完整的数据分析链路:取数、清洗转换、可视化探索、建模、把分析写成可复用的程序,最后甚至教你把代码打包成能给同事使用的 R 包。这条“从数据到交付”的路线,正是自学的人最容易缺失的一环。作者本人开发过 assertive、sig 等 R 包,做过统计学顾问,所以书中不少细节带着实战味道,例如如何检查变量状态、如何排查报错、如何设计清晰的函数接口。 译文出自刘军之手,术语处理稳妥,代码与正文对照阅读基本无碍。作为十多年前出版的书,它讲的核心语法和思维至今仍然适用,只是在 tidyverse、RStudio 新版本等生态上需要读者自行补充。如果你希望系统地、一步一步地真正学会 R,而不是照抄几段代码跑出图,这本书依然值得放在案头。

Who it's for

A good fit for

  • 完全没有编程经验、想系统入门 R 语言的读者
  • 需要做数据分析但只会 Excel 的高校学生与研究者
  • 统计、生物、医学等专业需用 R 处理数据的科研人员
  • 想打牢 R 语言基础、弄清数据类型与函数机制的转行者

Not a good fit for

  • 已熟练使用 tidyverse 并想学习现代 R 工作流的进阶用户
  • 希望直接学习机器学习算法与建模实战的读者
  • 只想快速查函数用法、需要案头速查手册的人

Reading tips

  1. 务必在电脑上装好 R 与 RStudio,边读边敲:书中代码量不大,动手执行才能体会报错与调试。
  2. 每章末的测验与练习不要跳过,先自己做再对附录答案,这是本书设计的核心学习路径。
  3. 第一部分的 11 章建议按序读完再进入第二部分,数据类型是后面所有分析的基础。
  4. 阅读第二部分时找一份自己熟悉的数据集跟着练一遍,把“获取—清理—可视化—建模—打包”走通。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Translator's Preface
  2. Preface
  3. Part One: The R Language
  4. Chapter 1 Introduction
  5. Chapter 2 A Scientific Calculator
  6. Chapter 3 Inspecting Variables and the Workspace
  7. Chapter 4 Vectors, Matrices, and Arrays
  8. Chapter 5 Lists and Data Frames
  9. Chapter 6 Environments and Functions
  10. Chapter 7 Strings and Factors
  11. Chapter 8 Flow Control and Loops
  12. Chapter 9 Advanced Loops
  13. Chapter 10 Packages
  14. Chapter 11 Dates and Times
  15. Part Two: The R Workflow
  16. Chapter 12 Getting Data
  17. Chapter 13 Cleaning and Transforming Data
  18. Chapter 14 Exploring and Visualizing
  19. Chapter 15 Distributions and Modeling
  20. Chapter 16 Programming
  21. Chapter 17 Making Packages
  22. Part Three: Appendices
  23. Appendix A: Attributes of Variables
  24. Appendix B: Other Things R Can Do
  25. Appendix C: Answers to Questions
  26. Appendix D: Answers to Exercises
  27. References
  28. About the Cover

FAQ

这本书需要先学统计或编程吗?
不需要。作者明确面向零基础读者,从安装 R、选择 IDE、写第一个程序讲起,数据类型和流程控制都从最基本的概念说起,因此有高中学历的数学基础即可跟上。
书中的 R 代码现在还能运行吗?
书中聚焦 base R 的核心语法与数据结构,这部分基本稳定,绝大多数示例仍可运行;但 IDE 界面、部分扩展包与新版 R 存在差异,建议对照官方文档调整,并补充学习 tidyverse。
和《R语言实战》相比有什么不同?
《R语言实战》偏重统计分析方法的实战应用,《学习R》更偏重语言本身:先系统讲清数据类型、函数、环境和循环,再讲数据分析流程,适合作为读实战书之前的基础训练。
中文版和英文影印版是同一本书吗?
内容同源,都是 Richard Cotton 的 Learning R。简体中文译本由刘军翻译、人民邮电出版社出版(ISBN 9787115351708);东南大学出版社出版的是英文影印版(ISBN 9787564149062)。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

Top rated in the same category