1919
2020Tidy data describes a standard way of storing data that is used wherever
2121possible 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
2323and more time working on your analysis.
2424
2525## Installation
@@ -31,11 +31,15 @@ install.packages("tidyverse")
3131# Alternatively, install just tidyr:
3232install.packages(" tidyr" )
3333
34- # Or the the development version from GitHub:
34+ # Or the development version from GitHub:
3535# install.packages("devtools")
3636devtools :: 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
5357tidyr also provides ` separate() ` and ` extract() ` functions which makes
5458it easier to pull apart a column that represents multiple variables. The
5559complement to ` separate() ` is ` unite() ` .
5660
5761To 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
8185in different places:
8286
8387| tidyr | gather | spread |
0 commit comments