R for Data Science: Import, Tidy, Transform, Visualize, and Model Data (Paperback)

Hadley Wickham, Garrett Grolemund



Learn how to use R to turn raw data into insight, knowledge, and understanding. This book introduces you to R, RStudio, and the tidyverse, a collection of R packages designed to work together to make data science fast, fluent, and fun. Suitable for readers with no previous programming experience, R for Data Science is designed to get you doing data science as quickly as possible.

Authors Hadley Wickham and Garrett Grolemund guide you through the steps of importing, wrangling, exploring, and modeling your data and communicating the results. You’ll get a complete, big-picture understanding of the data science cycle, along with basic tools you need to manage the details. Each section of the book is paired with exercises to help you practice what you’ve learned along the way.

You’ll learn how to:

  • Wrangle—transform your datasets into a form convenient for analysis
  • Program—learn powerful R tools for solving data problems with greater clarity and ease
  • Explore—examine your data, generate hypotheses, and quickly test them
  • Model—provide a low-dimensional summary that captures true "signals" in your dataset
  • Communicate—learn R Markdown for integrating prose, code, and results


學習如何使用 R 將原始數據轉化為洞察力、知識和理解。本書介紹了 R、RStudio 和 tidyverse,這是一系列 R 套件,旨在共同快速、流暢且有趣地進行數據科學。適合沒有編程經驗的讀者,R for Data Science 設計成讓您能夠盡快進行數據科學。

作者 Hadley Wickham 和 Garrett Grolemund 引導您進行導入、整理、探索和建模數據以及傳達結果的步驟。您將獲得對數據科學循環的完整整體理解,以及管理細節所需的基本工具。書中的每個部分都配有練習,以幫助您在學習過程中進行實踐。


- 整理:將數據集轉化為方便進行分析的形式
- 編程:學習使用強大的 R 工具以更清晰、更輕鬆地解決數據問題
- 探索:檢查數據、生成假設並快速測試它們
- 建模:提供捕捉數據集中真實“信號”的低維摘要
- 傳達:學習使用 R Markdown 將散文、代碼和結果集成在一起