From 87e4947f6662fa660b4ec655eeaa2b14ab8f2d52 Mon Sep 17 00:00:00 2001 From: hadley Date: Sun, 6 Dec 2015 18:02:29 +0400 Subject: [PATCH] Sketch out complete book outline --- _includes/package-nav.html | 25 +++++++++++++++--------- data-structures.Rmd | 21 ++++++++++++++++++++ datetimes.Rmd | 5 +++++ expressing-yourself.Rmd => functions.Rmd | 0 modelling.Rmd => model-assess.Rmd | 2 +- model-linear.Rmd | 20 +++++++++++++++++++ model-other.Rmd | 14 +++++++++++++ model-vis.Rmd | 7 +++++++ rmarkdown.Rmd | 5 +++++ shiny.Rmd | 5 +++++ transform.Rmd | 18 ++++++++++++----- 11 files changed, 107 insertions(+), 15 deletions(-) create mode 100644 data-structures.Rmd create mode 100644 datetimes.Rmd rename expressing-yourself.Rmd => functions.Rmd (100%) rename modelling.Rmd => model-assess.Rmd (98%) create mode 100644 model-linear.Rmd create mode 100644 model-other.Rmd create mode 100644 model-vis.Rmd create mode 100644 rmarkdown.Rmd create mode 100644 shiny.Rmd diff --git a/_includes/package-nav.html b/_includes/package-nav.html index 1bac99d..7e5147e 100644 --- a/_includes/package-nav.html +++ b/_includes/package-nav.html @@ -1,15 +1,22 @@
  • Introduction
  • + +
  • Visualize
  • +
  • R Markdown
  • Transform
  • -
  • String manipulation
  • -
  • Tidy
  • -
  • Expressing yourself
  • Import
  • + + +
  • Data structures
  • +
  • Strings
  • +
  • Dates and times
  • +
  • Expressing yourself with code
  • Lists
  • - +
  • Shiny
  • + + +
  • Linear models
  • +
  • Models and visualisation
  • +
  • Model assesment
  • +
  • Other models
  • diff --git a/data-structures.Rmd b/data-structures.Rmd new file mode 100644 index 0000000..181e7c8 --- /dev/null +++ b/data-structures.Rmd @@ -0,0 +1,21 @@ +--- +layout: default +title: Data structures +output: bookdown::html_chapter +--- + +Might be quite brief. + +## Data structures + +Atomic vectors and lists. What is a data frame? + +`typeof()` vs. `class()` mostly in context of how date/times and factors are built on top of simpler structures. + +## Factors + +(Since won't get a chapter of their own) + +## Subsetting + +Not sure where else this should be covered. diff --git a/datetimes.Rmd b/datetimes.Rmd new file mode 100644 index 0000000..0d375dc --- /dev/null +++ b/datetimes.Rmd @@ -0,0 +1,5 @@ +--- +layout: default +title: Dates and times +output: bookdown::html_chapter +--- diff --git a/expressing-yourself.Rmd b/functions.Rmd similarity index 100% rename from expressing-yourself.Rmd rename to functions.Rmd diff --git a/modelling.Rmd b/model-assess.Rmd similarity index 98% rename from modelling.Rmd rename to model-assess.Rmd index 2db7755..80c955d 100644 --- a/modelling.Rmd +++ b/model-assess.Rmd @@ -1,6 +1,6 @@ --- layout: default -title: Modelling +title: Models assessment output: bookdown::html_chapter --- diff --git a/model-linear.Rmd b/model-linear.Rmd new file mode 100644 index 0000000..15f52ea --- /dev/null +++ b/model-linear.Rmd @@ -0,0 +1,20 @@ +--- +layout: default +title: Model +output: bookdown::html_chapter +--- + +# Model + +After reading this chapter, what can you do that you couldn't before? + +Focus on fitting a single model, and understanding it with broom. Focus on linear models. Focus on intutition and computation tools. No mathematics. + +Review caret and mlr. + +"Feature engineering": + +* Factors +* Interactions +* Splines +* Log transform diff --git a/model-other.Rmd b/model-other.Rmd new file mode 100644 index 0000000..f16857c --- /dev/null +++ b/model-other.Rmd @@ -0,0 +1,14 @@ +--- +layout: default +title: Other model familes +output: bookdown::html_chapter +--- + + +## Extensions of linear models + +* Generalised linear models: logistic, ... + +* Hierarchical models + +## diff --git a/model-vis.Rmd b/model-vis.Rmd new file mode 100644 index 0000000..430cb51 --- /dev/null +++ b/model-vis.Rmd @@ -0,0 +1,7 @@ +--- +layout: default +title: Models and visualisation +output: bookdown::html_chapter +--- + +Gap minder diff --git a/rmarkdown.Rmd b/rmarkdown.Rmd new file mode 100644 index 0000000..2016e17 --- /dev/null +++ b/rmarkdown.Rmd @@ -0,0 +1,5 @@ +--- +layout: default +title: R Markdown +output: bookdown::html_chapter +--- diff --git a/shiny.Rmd b/shiny.Rmd new file mode 100644 index 0000000..c32a30f --- /dev/null +++ b/shiny.Rmd @@ -0,0 +1,5 @@ +--- +layout: default +title: Shiny +output: bookdown::html_chapter +--- diff --git a/transform.Rmd b/transform.Rmd index f0a5bc0..cb9f2ea 100644 --- a/transform.Rmd +++ b/transform.Rmd @@ -4,18 +4,24 @@ title: Data transformation output: bookdown::html_chapter --- -# Data transformation +Copy from dplyr vignettes. -## Missing values +## Filter + +### Missing values * Why `NA == NA` is not `TRUE` * Why default is `na.rm = FALSE`. -## Data types +## Mutate -Overview of different data types and useful summary functions for working with them. Strings and dates covered in more detail in future chapters. +## Arrange -Need to mention `typeof()` vs. `class()` mostly in context of how date/times and factors are built on top of simpler structures. +## Select + +## Grouped summaries + +Overview of different data types and useful summary functions for working with them. Strings and dates covered in more detail in future chapters. Anything complicated can be put off until data structures chapter. ### Logical @@ -26,3 +32,5 @@ When used with numeric functions, `TRUE` is converted to 1 and `FALSE` to 0. Thi ### Strings (and factors) ### Date/times + +## Grouped mutate