Commit Graph

1799 Commits

Author SHA1 Message Date
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
Hadley Wickham 4875bd1e16 Move netlify sponsorship to bottom 2020-10-09 07:08:05 -05:00
Hadley Wickham c7f80493d3 Bump bookdown cache (and rename action) 2020-10-09 06:52:41 -05:00
Hadley Wickham 04d2eebbef Get more info 2020-10-06 16:59:22 -05:00
Hadley Wickham 5beb87b800 Standardising 2020-10-06 16:17:30 -05:00
Hadley Wickham 9b93818260 Doesn't need name 2020-10-06 13:35:24 -05:00
Hadley Wickham 77f12b48ff Use official pandoc installer 2020-10-06 13:29:02 -05:00
Hadley Wickham ae632438d9 Tweak acknowledgements 2020-10-06 07:09:16 -05:00
Hadley Wickham 530cfe4b66 Remove number from acknowledgements 2020-10-06 07:01:35 -05:00
Hadley Wickham 5bf00290d2 Actually commit code of conduct 2020-10-05 17:58:33 -05:00
Hadley Wickham 8d7c705993 Add code of conduct and update acknowledgements
Fixes #884
2020-10-05 17:56:27 -05:00
Hadley Wickham 08a93c7eb4 Set file_scope option
Fixes #886
2020-10-05 11:28:01 -05:00
Hadley Wickham 02ad3896f3 Bump correct cache 2020-10-04 16:16:33 -05:00
Hadley Wickham a182b874bd Fix typo
Fixes #876
2020-10-04 16:12:56 -05:00
Hadley Wickham f0215486cc Consistent function names
Fixes #790
2020-10-04 16:08:10 -05:00
Hadley Wickham 335a0cb291 Remove extra pipe
Fixes #777
2020-10-04 16:05:58 -05:00
Hadley Wickham 3b11ca60db Update table name
Fixes #793
2020-10-04 16:04:51 -05:00
Hadley Wickham f2d7e6a921 Remove mention of scalar functions
Fixes #699
2020-10-04 15:57:45 -05:00
Hadley Wickham ec4140a9e5 Update object size
Fixes #698
2020-10-04 15:56:36 -05:00
Hadley Wickham 7d6d307e36 Bump digits (and flush cache)
Fixes #592
2020-10-04 15:40:48 -05:00
Hadley Wickham 49b295d0ac Bump cache 2020-10-04 15:34:55 -05:00
Hadley Wickham a2139dff4e Suppress crayon
Fixes #885
2020-10-04 15:08:52 -05:00
Hojjat Salmasian b12102f673
Dictation and grammar corrections for chapters 1-4 (#776) 2020-10-03 09:49:58 -05: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
Maria Paula Caldas c6e0a7a990
Replace deprecated summarise_each() for summarise_all() (#824) 2020-10-03 09:43:52 -05:00
Maria Paula Caldas 9eb33d8dcc
Provide arguments to nest() and unnest() to get rid of warnings (#825) 2020-10-03 09:43:41 -05:00
Angela Li 50adc6a9f3
Typo fix (#828) 2020-10-03 09:43:19 -05:00
boardtc d6e7ae07b8
Update rmarkdown.Rmd (#829)
Fixed broken link for rstudio cheat sheets
2020-10-03 09:43:03 -05:00
Charlotte Wickham 762b6af400
Update stat_summary args for ggplot2 3.3.0 (#839) 2020-10-03 09:41:36 -05:00
Johannes Gruber 089e060a06
Added missing word in datetimes.Rmd (#848) 2020-10-03 09:40:07 -05:00
Nischal Shrestha 1aeec599b9
Use after_stat instead of the old dotted syntax. (#851)
The `..` syntax in 3.7 Exercises to refer to computed variable `prop` should be updated to use the best practice of `after_stat` instead. Reduces confusion and more aligns with the documentation.
2020-10-03 09:38:39 -05:00
Christian Heinrich 0d08b14b2f
model-many.Rmd: Swap words (#856)
Grammar fix
2020-10-03 09:38:10 -05:00
Christian Heinrich f34678da55
Models-many.Rmd: Spelling/grammar (#858) 2020-10-03 09:37:42 -05:00
juandering f6aeebab5f
Update visualize.Rmd (#863)
Solid shapes are 15-20, not 15-18.
2020-10-03 09:36:08 -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