Skip to content

Commit 1b3bcfc

Browse files
batpigandmehadley
authored andcommitted
Add data import cheatsheet to README (#452)
* Fixes #422 * Also props typo fixes from master README.Rmd to md
1 parent be7bf93 commit 1b3bcfc

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

README.Rmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ install.packages("tidyr")
4242
devtools::install_github("tidyverse/tidyr")
4343
```
4444

45+
## Cheatsheet
46+
47+
<a href="https://github.com/rstudio/cheatsheets/blob/master/data-import.pdf"><img src="https://raw.githubusercontent.com/rstudio/cheatsheets/master/pngs/thumbnails/data-import-cheatsheet-thumbs.png" width="630" height="252"/></a>
48+
4549
## Getting started
4650

4751
```{r}

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ where:
1919

2020
Tidy data describes a standard way of storing data that is used wherever
2121
possible throughout the [tidyverse](http://tidyverse.org). If you ensure
22-
that your data is tidy, you’ll spend less timing fighting with the tools
22+
that your data is tidy, you’ll spend less time fighting with the tools
2323
and more time working on your analysis.
2424

2525
## Installation
@@ -31,11 +31,15 @@ install.packages("tidyverse")
3131
# Alternatively, install just tidyr:
3232
install.packages("tidyr")
3333

34-
# Or the the development version from GitHub:
34+
# Or the development version from GitHub:
3535
# install.packages("devtools")
3636
devtools::install_github("tidyverse/tidyr")
3737
```
3838

39+
## Cheatsheet
40+
41+
<a href="https://github.com/rstudio/cheatsheets/blob/master/data-import.pdf"><img src="https://raw.githubusercontent.com/rstudio/cheatsheets/master/pngs/thumbnails/data-import-cheatsheet-thumbs.png" width="630" height="252"/></a>
42+
3943
## Getting started
4044

4145
``` r
@@ -47,15 +51,15 @@ There are two fundamental verbs of data tidying:
4751
- `gather()` takes multiple columns, and gathers them into key-value
4852
pairs: it makes “wide” data longer.
4953

50-
- `spread()`. takes two columns (key & value) and spreads in to
51-
multiple columns, it makes “long” data wider.
54+
- `spread()` takes two columns (key & value), and spreads into
55+
multiple columns: it makes “long” data wider.
5256

5357
tidyr also provides `separate()` and `extract()` functions which makes
5458
it easier to pull apart a column that represents multiple variables. The
5559
complement to `separate()` is `unite()`.
5660

5761
To get started, read the tidy data vignette (`vignette("tidy-data")`)
58-
and check out the demos, `demo(package = "tidyr")`).
62+
and check out the demos (`demo(package = "tidyr")`).
5963

6064
## Related work
6165

@@ -77,7 +81,7 @@ I’d recommend the following three papers:
7781
- [On efficiently implementing SchemaSQL on a SQL database
7882
system](http://www.vldb.org/conf/1999/P45.pdf)
7983

80-
To guide your reading, here’s translation between the terminology used
84+
To guide your reading, here’s a translation between the terminology used
8185
in different places:
8286

8387
| tidyr | gather | spread |

0 commit comments

Comments
 (0)