Commit Graph

59 Commits

Author SHA1 Message Date
Mine Cetinkaya-Rundel 27db40ad65
Data transformation (#940)
* Minor edit + link to style guide

* Fix reference

* If you don't know order of operations, not clear

* Alt text + minor edits

* Add median and fix reference

* Move up mult groups up to discuss summarise msg

* Go over grouping again

* Part rename

* Chapter rename

* Clean up section labels to avoid dups

* Update comment

* Switch part order

* Move columnwise to transform
2021-03-29 14:58:27 +01:00
Mine Çetinkaya-Rundel dc44bde9d9 Move up tidy data chapter 2021-03-03 15:30:28 +00:00
Mine Cetinkaya-Rundel 32c625c6ef
Use the visual editor (#923)
* Sentence wrap + visual editor Rmd style updates

* Move files not called in bookdown.yml to extra

* UK spelling + canonical source + sentence wrap

* Rename .rmd -> .Rmd

* Sentence wrap + visual editor Rmd style

* Fix capitalization
2021-02-21 09:40:40 -06:00
Mine Cetinkaya-Rundel 8fec043d5f
Tidy data edit (#914)
* No need to load ggplot2, tidyverse is loaded

* Add motivation for why to pivot + minor edits

* Add an exercise on making a contingency table

* Use index.Rmd instead of rmd to make the build work

* Case study should be sentence case

* Make figure more legible and don't rely on color alone

* Streamline example + names_transform

* Potential pathway for more advanced pivot_wider

* Pivot even wider example + new unite exercise

* Update case study to use full feature pivot_wider

* Change the pregnancy exercise

* Fix chapter reference

* Remove century example since first 2 digits is not century

* Add caption to floating figure

* Align parens

* Fix referencing

* Add alt text to all chunks with plots or figures

* Remove unused figure (related to year -> century)

* Make subparts of exercises alphabetical

* Remove references to names_transform, use mutate()

* Fix code style

* Few more chp/sec reference fixes

* Put line break back
2021-02-05 10:44:17 -06:00
Maria Paula Caldas 09d84c4c5a
Small typos in tidy chapter (#821)
* Fix typo (names_ptypes)

* Replace na.rm with values_drop_na

* Fix typo (be to by)
2020-10-03 09:45:39 -05:00
George Wang ce1aa5fbff
Update tidy.Rmd (#865)
Line 506: 
When fixing the string format in the `key` column using the `str_replace` function, I think the column name was mistakenly stated as "names_from", where it should actually be "key", which is the original column name.
2020-10-03 09:35:40 -05:00
Hadley Wickham 09fd870db7 Fix quotes in caption 2020-01-15 11:46:18 -06:00
Garrett Grolemund 2459702500 Updates R4ds to use pivot_ functions (#820)
* Updates tidy.Rmd to teach pivot_longer() and pivot_wider() instead of gather() and spread().

* Eliminates all out-dated uses of gather and spread found in a find-in-files search.

* Removes yaml header and duplicate sentence from tidy.Rmd.
2020-01-15 10:17:10 -06:00
Erik Erhardt d96fdedfbb Update tidy.Rmd, typo: Spreading "forms" to "from" (#639) 2018-06-20 11:05:25 +02:00
Hao Chen 8fee078c9d Better naming consistency (#621)
Now 'key' is used commonly across step-by-step guide, final complex pipe, and the exercise.
2018-06-20 11:00:39 +02:00
Hao Chen 0d7ba63f77 Use pipe for the spread example (#620)
To keep consistency with the rest of chapter.
2018-06-20 11:00:07 +02:00
Mark Beveridge 83b0fa9132 Update tidy.Rmd (#613)
Minor typo on row 288 : 'case' --> 'cases'
2018-06-20 10:58:16 +02:00
hadley 4de457b408 Non-syntactic reminder. Fixes #509 2017-05-03 08:14:41 -05:00
hadley 6afdb03666 More @jennybc comments 2016-10-07 08:18:32 -05:00
hadley 30509621cf Tibble is always attached now 2016-10-03 16:53:31 -05:00
hadley 7768955fe6 Use tidyverse package
Fixes #451
2016-10-03 12:30:24 -05:00
hadley a0eba42266 Fixes from @schuess
Closes #409
2016-10-03 08:37:07 -05:00
Kara Woo c93a5c51ae Fix typo in section 12.3.1 (Gathering) (#431) 2016-10-03 07:41:41 -05:00
hadley ac4a138ed6 Use tibble and tribble everywhere
Fixes #411
2016-10-03 07:29:47 -05:00
Robert Schuessler fe5bafda98 fix typo: s (#404)
Is it a pair of variables here? It seems like you're saying you gather the two columns into a single new variable, year.
2016-10-03 07:14:15 -05:00
harrismcgehee 7c9c28c363 Fix typo (#256) 2016-08-15 07:33:25 -05:00
harrismcgehee 7773637bc9 Fix typo (#257) 2016-08-15 07:33:19 -05:00
harrismcgehee 6b1ac1f40b Suggest word insertion (#258) 2016-08-15 07:33:12 -05:00
harrismcgehee 2c0c6a8be5 Spell check suggestions (#259) 2016-08-15 07:33:05 -05:00
harrismcgehee 3404a00283 Missing an s (#260) 2016-08-15 07:31:48 -05:00
S'busiso Mkhondwane 010ea3b0c8 Update tidy.Rmd (#252)
Typo
2016-08-13 09:03:31 -05:00
hadley 273a481021 Fix typos
Closes #223.
2016-08-12 12:44:36 -05:00
hadley e1a49849d4 Proofing tidy & relational data 2016-08-12 08:58:32 -05:00
S'busiso Mkhondwane 2985b6d617 Update tidy.Rmd (#222)
typo
2016-08-02 09:25:57 -05:00
S'busiso Mkhondwane b5aa2a7fcd Update tidy.Rmd (#221)
in Figure 9.2, you mention "table4" but the code uses "table4a and table4b". I can't run the code for table4a and table4b, the datasets from DSR refers to table4 for table4a and table5 for table4b.
2016-08-02 09:13:39 -05:00
S'busiso Mkhondwane c376c930e4 Update tidy.Rmd (#220)
UK English
2016-08-02 09:13:31 -05:00
Jeroen Janssens 2dc8df1732 Replace `tabble1` with `table1` in Chapter 9 (#213) 2016-08-01 06:45:15 -05:00
hadley c4168bbd37 Merge branch 'master' of github.com:hadley/r4ds
# Conflicts:
#	EDA.Rmd
2016-07-31 11:41:30 -05:00
Christian Mongeau 3eb371e111 Fixes in tidy (#210)
* Fixed URL to WHO data

The link was not rendered as missing the protocol.

* Typos
2016-07-31 11:33:58 -05:00
hadley 9cf3badbf0 Changes from @mine-cetinkaya-rundel 2016-07-31 11:32:16 -05:00
hadley 8357e455f9 Fix koan
Fixes #204
2016-07-28 15:40:34 -05:00
hadley f9e51a7096 Final tidy polishing 2016-07-27 08:23:28 -05:00
hadley 2a93db4ff3 Tidying the tidy chapter 2016-07-26 17:44:17 -05:00
hadley a2ff3ec52f Tidy chapter updates 2016-07-25 11:28:05 -05:00
hadley 90a1b4d46d Add missing intro subheads 2016-07-24 09:16:08 -05:00
behrman 05a0efe27c Fix typos (#146) 2016-07-22 11:24:48 -05:00
hadley 5a5e65357f Missing package decl 2016-07-19 08:33:16 -05:00
hadley 8faebedf9f Consistent chapter intro layout 2016-07-19 08:01:50 -05:00
hadley ef785dcabd Merge branch 'master' of github.com:hadley/r4ds 2016-07-18 17:40:22 -05:00
Garrett e4465bd767 Adds separate and unite diagrams to tidy.Rmd 2016-07-18 12:07:55 -04:00
hadley 11294f5d0c Tweak figures through out book 2016-07-18 09:54:10 -05:00
hadley d4c2513b61 Consistent quote form 2016-07-11 17:32:36 -05:00
hadley 1822802696 Use dataset instead of data set 2016-07-11 10:40:44 -05:00
hadley 1bddb9c561 Eliminate use of DSR 2016-07-11 08:35:07 -05:00
hadley 539e6d9a8a Fixes from Roberto 2016-06-27 13:07:23 -05:00