Quick start
Open a book and find your way around
Give tomes the address of a book made with Quarto. Here it’s R for Data Science:
tomes https://r4ds.hadley.nz/
R for Data Science (2e) │ ┃
▸Welcome │ R for Data Science (2e) ┃
Preface to the second edition │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃
Introduction │ ┃
Whole game │ Welcome ┃
1 Data visualization │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ┃
2 Workflow: basics │ ┃
3 Data transformation │ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀▄▄▄▄▄▄▀▄▄▄ ┃
4 Workflow: code style │ ▀▀▀▀▀▀▀▀▀ ▄▄▀▀▀▀▄▀▀▄▀▀ ┃
5 Data tidying │ ▄▄▄▄▄▄▄▄▄ ▄▄▀▄▄▀▄▀▀▄ ┃
6 Workflow: scripts and proj… │ ▀▀▀▀▀ ▀▀▀ ▀▀▀▀▀▀ ▀▀▀ ▄▄▀▄▄▄▄ │
7 Data import │ ▀▀▀▄ ▄▄▀▀▄▀▀▀▄ ▄▄▄▄▀▀▄▀▀▄▀▀▄▀▀ ▄▄▀▀ │
8 Workflow: getting help │ ▄▄▄▄▀ ▄▄▄▀▀▄▄▄ ▄▄▀▀▄▄▀▀▀▄▄▀▄▀▀▄ ▄▄▀▀ │
Visualize │ ▀▀▀▀ ▄▀▀▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄▄ │
9 Layers │ ▄▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄▀▀▀▀▀ │
10 Exploratory data analysis │ ▀▀▀▄▄▀▀▀▄▄▄▀▄▄▄▄▄▀▀▀▄▀▄▄ │
11 Communication │ ▀▀▄▀▀▀▄▀▀▀▄▀▀▀▀▀▀▀▄▀▀▄▀▀▀▀ │
Transform │ ▄▄▄▄▄▀▀▀▄▄▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ │
12 Logical vectors │ ▄▄▄▄▄▄▄▄▄▄▄▄▄ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ │
13 Numbers │ ▀▀▀▀▀▄▄▀▀▄▄▄▄▄▀▄▀▀▀▀▀ │
14 Strings │ ▀▀▀▄▄▄▄▄▄▄▄▄▄▄▀▄▄▄▀▀▀▄▀▀ │
15 Regular expressions │ ▀▀▀▄▄▀▀▄▄▄▄▀▄▀▄▀▄▄▄▄▄▄▀▄▄ │
16 Factors │ ▀▀▀▄▄▄▄▀▄▀▄▄▄▄▄▄▀▀▀▄▄▄▄▄▄▄▄ │
17 Dates and times │ ▀▀▀▀▀▀▀▀▀▀▄▄▄▀▀▀▄▄▀▄▄▄ ▄▄▄ │
18 Missing values │ ▀▀▀▀▀▀▀▀▄▄▀▄▄▄▄▄▀▄▄▄▄ │
19 Joins │ ▄▄▀▄▀▄▄▄▄▀▀▄▀▀▄▄▄▄▄ ▀▀▀ │
Import │ ▀▀▀▀▄▄▄▄▄▄▄▄▄▀▀▀▀▀▀ ▀▀▀▄▄ │
20 Spreadsheets │ ▀▀▀▀▄▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄ │
21 Databases │ ▀▀▀▀▀▀▀▀▀▀▀▀▀▄▄▄▀▄▄▄▀▀▀▀▀▀▀▄▄▄▄▄ │
Welcome ▶ terminal term 1/38 Top
On the left is the outline: the chapters, and the sections of the chapter you’re in. The status line shows where you are, where commands go (▶), the colors, and how far you are in the chapter.
Scroll with j and k (or the arrow keys, or the mouse), and with Ctrl-d and Ctrl-u half a screen at a time. > goes to the next chapter:
R for Data Science (2e) │ • The first part of the book has been renamed to “Whole game”. The goal │
Welcome ✓ │ of this section is to give you the rough details of the “whole game” │
▸Preface to the second edition │ of data science before we dive into the details. │
Introduction │ • The second part of the book is “Visualize”. This part gives data │
Whole game │ visualization tools and best practices a more thorough coverage │
1 Data visualization │ compared to the first edition. The best place to get all the details │
2 Workflow: basics │ is still the ggplot2 book, but now R4DS covers more of the most │
3 Data transformation │ important techniques. │
4 Workflow: code style │ • The third part of the book is now called “Transform” and gains new │
5 Data tidying │ chapters on numbers, logical vectors, and missing values. These were │
6 Workflow: scripts and proj… │ previously parts of the data transformation chapter, but needed much ┃
7 Data import │ more room to cover all the details. ┃
8 Workflow: getting help │ • The fourth part of the book is called “Import”. It’s a new set of ┃
Visualize │ chapters that goes beyond reading flat text files to working with ┃
9 Layers │ spreadsheets, getting data out of databases, working with big data, ┃
10 Exploratory data analysis │ rectangling hierarchical data, and scraping data from web sites. ┃
11 Communication │ • The “Program” part remains, but has been rewritten from top-to-bottom ┃
Transform │ to focus on the most important parts of function writing and ┃
12 Logical vectors │ iteration. Function writing now includes details on how to wrap ┃
13 Numbers │ tidyverse functions (dealing with the challenges of tidy evaluation), ┃
14 Strings │ since this has become much easier and more important over the last few ┃
15 Regular expressions │ years. We’ve added a new chapter on important base R functions that ┃
16 Factors │ you’re likely to see in wild-caught R code. ┃
17 Dates and times │ • The modeling part has been removed. We never had enough room to fully ┃
18 Missing values │ do modelling justice, and there are now much better resources ┃
19 Joins │ available. We generally recommend using the tidymodels packages and ┃
Import │ reading Tidy Modeling with R by Max Kuhn and Julia Silge. ┃
20 Spreadsheets │ • The “Communicate” part remains, but has been thoroughly updated to ┃
21 Databases │ feature Quarto instead of R Markdown. This edition of the book has │
Preface to the second edition ▶ terminal term 2/38 95%
Press ? for all keys:
R for Data Science (2e) │ • The first part of the book has been renamed to “Whole game”. The goal │
Welcom╭ Keys ────────────────────────────────────────────────────────────────────────────────────────╮e” │
▸Prefac│ Moving │ │
Introd│ j, ↓ Down a line │ │
Whole │ k, ↑ Up a line │ │
1 Dat│ Ctrl-d Down half a screen │ls │
2 Wor│ Ctrl-u Up half a screen │ │
3 Dat│ Ctrl-f, PageDown Down a screen │ │
4 Wor│ Ctrl-b, PageUp Up a screen │ │
5 Dat│ Ctrl-e Scroll the text down a line │re │
6 Wor│ Ctrl-y Scroll the text up a line │ch ┃
7 Dat│ gg, Home Go to the top (with a count: line N) │ ┃
8 Wor│ G, End Go to the bottom │ ┃
Visual│ % Go to N% of the page │ ┃
9 Lay│ H Cursor to the top of the screen │, ┃
10 Ex│ M Cursor to the middle of the screen │ ┃
11 Co│ L Cursor to the bottom of the screen │tom ┃
Transf│ zz Center the cursor line │ ┃
12 Lo│ zt Scroll the cursor line to the top │ ┃
13 Nu│ zb Scroll the cursor line to the bottom │n), ┃
14 St│ } Next paragraph │ few ┃
15 Re│ { Previous paragraph │t ┃
16 Fa│ ]] Next section │ ┃
17 Da│ [[ Previous section │lly ┃
18 Mi│ ]c Next code block │ ┃
19 Jo│ [c Previous code block │d ┃
Import│ ]f Next figure or table │ ┃
20 Sp│ [f Previous figure or table │ ┃
21 Da╰────────────────────────────────────────────────────────────────────── j/k scroll · Esc close ╯ │
Preface to the second edition ▶ terminal term 2/38 95%
Esc closes the help, q quits. Next time, tomes without arguments opens the book where you left off. Without any book, it shows a list of free books to pick from (see Other books).
The essential keys:
| Key | What |
|---|---|
j k Ctrl-d Ctrl-u gg G |
Scroll |
> < |
Next and previous chapter |
Space e |
Show or hide the outline |
/ Ctrl-p |
Search the page, the whole book |
Enter f Ctrl-o |
Follow a link, show labels for links, go back |
yc s |
Copy the commands of a code block, send them to a terminal |
Space o |
Open another book |
? q |
Help, quit |