Commit Graph

1333 Commits

Author SHA1 Message Date
Jakob Krigovsky 20b925c1ee
Fix str_to_upper’s default locale (#937)
From https://stringr.tidyverse.org/reference/case.html:

> locale: Locale to use for translations. Defaults to "en" (English) to ensure consistent default ordering across platforms.
2021-04-14 16:03:48 +01:00
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
funkybluehen 50703875cc
Update vectors.Rmd (#929)
Section 20.4.5 Subsetting
A small grammatical issue on line 329
(insert the letter 'a')
2021-03-26 13:13:34 +00:00
Jakob Krigovsky 631b93b1a4
Fix typos (#936) 2021-03-26 13:12:18 +00:00
Mine Cetinkaya-Rundel 1eee408cb6
Updates to whole game intro + dataviz chapter (#932)
* Streamline narrative for new chapters and part name

* Add to do note to add sizing for faceted plots

* Minor edits, function updates, figure alt text

* Revert references to vars() in facets, use formula

* Spell check, colo*u*r, comma after r in chunk def

* Streamline fig.alt language

* If eval = FALSE, don't need fig.alt

* Fix sentence fragment
2021-03-19 12:38:28 +00:00
Mine Cetinkaya-Rundel 588f70ac59
Merge pull request #924 from mine-cetinkaya-rundel/no-iris
Structural updates for 2e
2021-03-03 20:58:22 +00:00
Mine Çetinkaya-Rundel ad7fb0dd4b Second crack and 2e structure 2021-03-03 17:13:14 +00:00
Mine Çetinkaya-Rundel dc44bde9d9 Move up tidy data chapter 2021-03-03 15:30:28 +00:00
Mine Çetinkaya-Rundel 55cdb66df6 Add feather to imports to see if it helps w/ build 2021-02-22 13:41:06 +00:00
Mine Çetinkaya-Rundel 90d168246c Fix chapter reference 2021-02-22 13:34:21 +00:00
Mine Çetinkaya-Rundel b7c4498750 Add stub for new section 2021-02-22 13:00:06 +00:00
Mine Çetinkaya-Rundel 5769a02123 Update referencing style 2021-02-22 12:59:50 +00:00
Mine Çetinkaya-Rundel 6d977a565a Add new import part 2021-02-22 12:28:26 +00:00
Mine Çetinkaya-Rundel 9c2fdc7ee0 Update chapter references 2021-02-22 11:56:08 +00:00
Mine Çetinkaya-Rundel a6c9e4e6ab Update links and add blurb about new chapters 2021-02-22 11:36:53 +00:00
Mine Çetinkaya-Rundel b86a23477f Restructure wrangle, add stubs for new chapters 2021-02-22 00:22:15 +00:00
Mine Çetinkaya-Rundel dc31887b1e Rename files for whole game, move import in 2021-02-21 23:32:01 +00:00
Mine Çetinkaya-Rundel b5654a3a08 Rename part: explore -> whole game 2021-02-21 22:34:35 +00:00
Mine Çetinkaya-Rundel 55803fc8a3 Remove modelling
- Move files to extras/ for now
- Adjust references to modelling
- Or add TO DO items to adjust later
2021-02-21 21:29:24 +00:00
Mine Çetinkaya-Rundel f9109aadfe Add 2nd edition preface and planned major changes 2021-02-21 20:09:08 +00:00
Mine Çetinkaya-Rundel fbb738e799 Enumerate exercise subparts with letters 2021-02-21 17:32:37 +00:00
Mine Çetinkaya-Rundel 852f6b98a0 Remove references to iris 2021-02-21 17:12:50 +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
Mitsuo Shiota 1795c94855
Fix fct_lump example (#918)
* happen to have "Other" in factor levels

* rescind code change, instead add comments

* make an exercise
2021-02-09 07:25:34 -06:00
Hadley Wickham 8170f7c4f9 Add missing assignment 2021-02-08 12:11:28 -06:00
Mitsuo Shiota 8670e92a8c
Fix inconsistency in season (#921) 2021-02-08 11:35:19 -06:00
Mitsuo Shiota b1fb15a410
x_1 denotes a variable, while a_1 denotes a parameter (#920) 2021-02-08 11:35:02 -06:00
Mitsuo Shiota 35bca36e72
.x, not ., is recommended in ~ formula (#919)
* .x, not ., is recommended in ~ formula

* change . to .x to be consistent

* . refers to a list, while .x refers to a list element
2021-02-08 11:34:49 -06:00
Mitsuo Shiota f1805f2bfc
ggstance package has been superseded by ggplot2 3.3.0 (#917) 2021-02-08 11:33:15 -06:00
Mohammed Hamdy e13a376ef1
Typo fix for model-basics.Rmd (#910)
Corrected "the" to "then" on line 108
2021-02-08 11:33:01 -06:00
Jordan 36a67dd388
Two typo fixes for model basics chapter (#908)
* Remove typo

* Make model function naming convention consistent
2021-02-08 11:32:34 -06:00
hendrikweisser 59a5b116ed
Spelling fix ("dagwood sandwhich") (#907) 2021-02-08 11:32:01 -06:00
Jakob Krigovsky cbedaab8ae
Fix capitalization of “Twitter” (#903) 2021-02-08 11:31:13 -06:00
Jakob Krigovsky 94f42e373c
Fix spelling of “Stack Overflow” (#902) 2021-02-08 11:31:04 -06:00
Ulrik Lyngs f9d06ba4c4
Fix ungrammatic sentence (#900) 2021-02-08 11:30:33 -06:00
Ulrik Lyngs eb8404ddf9
fix typo (#899) 2021-02-08 11:30:06 -06:00
Vebash Naidoo 46c395a954
Potential typo? (#897)
I don't know if it was meant to be this way, because it's actually not weird to say `data time` but assuming it was meant to be `date time` I amended:

regular data time `lubridate::as_date_time()` -> regular date time `lubridate::as_date_time()`
2021-02-08 10:31:26 -06:00
Kevin Ferris 9d6ed46c5e
Removed reference to deprecated .drop argument (#896)
According to the output and documentation, `.drop` was deprecated as an argument.  I'd propose just removing this chunk and adding a comment in the original `unnest(glance)` pipeline
2021-02-08 10:31:10 -06:00
aleloi e2d5d7b31a
Switch from stat() to after_stat() in chap 3. (#895)
The docs in of aes_eval in [most recent](https://ggplot2.tidyverse.org/reference/aes_eval.html?q=after%20_%20stat#arguments) ggplot2 3.3.2 say that after_stat() and after_scale() has replaced stat().
2021-02-08 10:30:54 -06:00
Vebash Naidoo 23996a081d
dplyr does have a drop option (#894)
We can include levels with no observations in dplyr::count() now with the .drop = FALSE argument setting. I changed the wording and added an example. Please feel free to amend text wording and remove example if you wish.
2021-02-08 10:30:40 -06:00
Mine Cetinkaya-Rundel d1a3741fd5
Super minor typo fix (#893) 2021-02-08 10:30:17 -06:00
Pooya Taherkhani 164172d32a
Drop na.rm=TRUE when data is already purged of NAs (#811)
In transform.Rmd (Chapter 5, Data Transformation), under Counts (5.6.3),
we removed na.rm = TRUE when computing mean because all NAs for
arr_delay were already removed when creating not_cancelled dataset.
2021-02-08 10:29:21 -06:00
olivier6088 1c21ba1e68
Update relational-data.Rmd (#759) 2021-02-08 10:28:47 -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
Hadley Wickham a1855ab4f9 Start on 2nd edition 2021-02-04 15:23:41 -06:00
Mine Cetinkaya-Rundel 2390ed29b1
Use index.Rmd instead of rmd to make the build work (#916) 2021-01-31 10:34:35 -06:00
Hadley Wickham 2d1db88de8 Move packages to suggests
If only needed to build book
2020-11-05 14:30:23 -06:00
Hadley Wickham 7f9e6cc16c use_tidy_description() 2020-11-05 14:28:22 -06:00
Hadley Wickham a3e35f85cb Use bookdown::bs4_book 2020-11-05 14:27:59 -06:00
sciencificity 9e8a7ee756
A spelling fix (#891)
'supressess' changed to 'suppresses'
2020-11-05 13:28:10 -06:00