Skip to content

Commit

Permalink
add manifest, change dir names
Browse files Browse the repository at this point in the history
  • Loading branch information
sysilviakim committed Aug 26, 2020
1 parent 359fea5 commit 05bf1f8
Show file tree
Hide file tree
Showing 95 changed files with 254 additions and 44 deletions.
12 changes: 12 additions & 0 deletions Epilogue/customTests.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Put custom tests in this file.

# Uncommenting the following line of code will disable
# auto-detection of new variables and thus prevent swirl from
# executing every command twice, which can slow things down.

# AUTO_DETECT_NEWVAR <- FALSE

# However, this means that you should detect user-created
# variables when appropriate. The answer test, creates_new_var()
# can be used for for the purpose, but it also re-evaluates the
# expression which the user entered, so care must be taken.
File renamed without changes.
4 changes: 4 additions & 0 deletions Epilogue/initLesson.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Code placed in this file fill be executed every time the
# lesson is started. Any variables created here will show up in
# the user's working directory and thus be accessible to them
# throughout the lesson.
79 changes: 79 additions & 0 deletions Epilogue/lesson.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
- Class: meta
Course: swirl
Lesson: Epilogue
Author: Seo-young Silvia Kim
Type: Standard
Organization: American University
Version: 0.1.0

# INTRO ========================================================================
- Class: text
Output: >
This is a wrap-up to the swirl-tidy lesson.
We covered a lot of ground in this series of twenty-something swirl lessons.
# PREAMBLE =====================================================================
## demo_lesson(4)
- Class: text
Output: >
We covered, using tidyverse packages,
(1) how to import data
(2) how to tidy the data
(3) how to transform the data
(4) how to visualize the data
(5) how to better program
(6) how to create statistical models
## demo_lesson(5)
- Class: text
Output: >
Some packages that are part of the tidyverse that are not covered here
include {DBI}, {httr}, {jsonlite}, {xml2} (although this is loaded when
we worked with {rvest}), {hms}, {blob}, and {glue}.
## demo_lesson(6)
- Class: text
Output: >
I also haven't covered {magrittr}, which is commonly used, but currently
this package is undergoing a major overhaul to magrittr 2.0, so I will wait
to see what I want to include in the lesson.
## demo_lesson(7)
- Class: text
Output: >
Again, as we saw with {rvest}, tidyverse alone may not be an answer to
everything. Look up StackOverflow if you have specific needs that are not
met.
## demo_lesson(8)
- Class: text
Output: >
* If you work with large datasets, I urge you to check out {data.table} by
Matt Dowle at https://github.com/Rdatatable/data.table.
* If you work a lot with machine learning, check out {caret} by Max Kuhn
at https://topepo.github.io/caret/.
* {xtable} is a great package to export your data/model summaries into
tables, especially LaTeX files. This will be extremely useful in making
your results reproducible.
# OUTRO ========================================================================
- Class: text
Output: >
Check back for more updates on swirl-tidy! Good luck on your R journey.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions 05_import_haven/lesson.yaml → Import_with_haven/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- Class: meta
Course: swirl-tidy
Lesson: 05_import_haven
Lesson: Import_with_haven
Author: Seo-young Silvia Kim
Type: Standard
Organization: American University
Expand Down Expand Up @@ -69,6 +69,6 @@
# OUTRO ========================================================================
- Class: text
Output: >-
You have completed "05_import_haven" lesson of swirl-tidy!
You have completed "Import with haven" lesson of swirl-tidy!
I will see you in the next lesson.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions 04_import_readr/lesson.yaml → Import_with_readr/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- Class: meta
Course: swirl-tidy
Lesson: 04_import_readr
Lesson: Import_with_readr
Author: Seo-young Silvia Kim
Type: Standard
Organization: American University
Expand Down Expand Up @@ -49,7 +49,7 @@
- Class: text
Output: >-
Note that {readr} does not import .xls or .xlsx files. For that, you have to
use {readxl} package. Go to lesson "06_import_readxl" for more info on how
use {readxl} package. Go to lesson "Import_with_readxl" for more info on how
to export Excel files.
## demo_lesson(6)
Expand Down Expand Up @@ -406,7 +406,7 @@
# OUTRO ========================================================================
- Class: text
Output: >-
You have completed "04_import_readr" lesson of swirl-tidy!
You have completed "Import with readr" lesson of swirl-tidy!
Check out its official website at https://readr.tidyverse.org.
I will see you in the next lesson.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- Class: meta
Course: swirl-tidy
Lesson: 06_import_readxl
Lesson: Import_with_readxl
Author: Seo-young Silvia Kim
Type: Standard
Organization: American University
Expand Down Expand Up @@ -70,6 +70,6 @@
# OUTRO ========================================================================
- Class: text
Output: >-
You have completed "06_import_readxl" lesson of swirl-tidy!
You have completed "Import with readxl" lesson of swirl-tidy!
I will see you in the next lesson.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions 07_import_rvest/lesson.yaml → Import_with_rvest/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- Class: meta
Course: swirl-tidy
Lesson: 07_import_rvest
Lesson: Import_with_rvest
Author: Seo-young Silvia Kim
Type: Standard
Organization: American University
Expand Down Expand Up @@ -71,6 +71,6 @@
# OUTRO ========================================================================
- Class: text
Output: >-
You have completed "07_import_rvest" lesson of swirl-tidy!
You have completed "Import with rvest" lesson of swirl-tidy!
I will see you in the next lesson.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- Class: meta
Course: swirl-tidy
Lesson: 03_intro_pipes
Lesson: Introduction_to_pipes
Author: Seo-young Silvia Kim
Type: Standard
Organization: American University
Expand Down Expand Up @@ -220,6 +220,6 @@
- Class: text
Output: >-
You have completed "03_intro_pipes" lesson of swirl-tidy!
You have completed "Introduction to pipes" lesson of swirl-tidy!
I will see you in the next lesson.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- Class: meta
Course: swirl-tidy
Lesson: 02_intro_tibbles
Lesson: Introduction_to_tibbles
Author: Seo-young Silvia Kim
Type: Standard
Organization: American University
Expand Down Expand Up @@ -365,7 +365,7 @@
- Class: text
Output: >-
You have completed "02_intro_tibbles" lesson of swirl-tidy!
You have completed "Introduction to tibbles" lesson of swirl-tidy!
I will see you in the next lesson.
21 changes: 21 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Overview
Introduction_to_tibbles
Introduction_to_pipes
Import_with_readr
Import_with_haven
Import_with_readxl
Import_with_rvest
Tidy_with_tibble
Tidy_with_tidyr
Transform_with_dplyr_I
Transform_with_dplyr_II
Transform_with_dplyr_III
Transform_with_dplyr_IV
Transform_with_forcats
Transform_with_stringr
Transform_with_lubridate
Program_with_purrr
Visualize_with_ggplot2_I
Visualize_with_ggplot2_II
Visualize_with_ggplot2_III
Epilogue
12 changes: 12 additions & 0 deletions Model_with_tidymodels/customTests.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Put custom tests in this file.

# Uncommenting the following line of code will disable
# auto-detection of new variables and thus prevent swirl from
# executing every command twice, which can slow things down.

# AUTO_DETECT_NEWVAR <- FALSE

# However, this means that you should detect user-created
# variables when appropriate. The answer test, creates_new_var()
# can be used for for the purpose, but it also re-evaluates the
# expression which the user entered, so care must be taken.
File renamed without changes.
4 changes: 4 additions & 0 deletions Model_with_tidymodels/initLesson.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Code placed in this file fill be executed every time the
# lesson is started. Any variables created here will show up in
# the user's working directory and thus be accessible to them
# throughout the lesson.
79 changes: 79 additions & 0 deletions Model_with_tidymodels/lesson.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
- Class: meta
Course: swirl
Lesson: Model_with_tidymodels
Author: Seo-young Silvia Kim
Type: Standard
Organization: American University
Version: 0.1.0

# INTRO ========================================================================
- Class: text
Output: >
(THIS LESSON IS A PLACEHOLDER FOR FUTURE DEVELOPMENT. CHECK BACK LATER!)
Welcome back! Today we will continue to explore how to do statistical models
using {tidymodels} package. When you see ..., press Enter.
- Class: cmd_question
Output: >-
Run {install.packages("tidymodels")}, if it is not already installed.
This is tidymodels not tidyverse!!
You can type "skip()" if this package is already installed.
Remember to close all other sessions of R (if Windows) before this step.
Otherwise, you may run into error messages such as 'Warning in
install.packages : installation of package ‘XXX’ had non-zero exit status'.
CorrectAnswer: if (!require("tidymodels")) install.packages("tidymodels")
AnswerTests: >-
any_of_exprs(
'install.packages(pkgs = "tidymodels")',
'if (!require("tidymodels")) install.packages(pkgs = "tidymodels")',
'skip()'
)
Hint: 'If the package is already installed, type skip().'

- Class: cmd_question
Output: 'Now load the tidymodels package.'
CorrectAnswer: library("tidymodels")
AnswerTests: any_of_exprs('library(tidymodels)', 'library("tidymodels")')
Hint: 'Avoid using {require}. Use {library}.'

# PREAMBLE =====================================================================
## demo_lesson(4)
- Class: text
Output: >-
Just like the tidyverse, tidymodels is a *collection* of packages, such as
{parsnip}, {recipes}, and so on.
## demo_lesson(5)
## demo_lesson(6)
## demo_lesson(7)
## demo_lesson(8)
## demo_lesson(9)
## demo_lesson(10)
## demo_lesson(11)
## demo_lesson(12)
## demo_lesson(13)
## demo_lesson(14)
## demo_lesson(15)
## demo_lesson(16)
## demo_lesson(17)
## demo_lesson(18)
## demo_lesson(19)
## demo_lesson(20)
## demo_lesson(21)
## demo_lesson(22)
## demo_lesson(23)
## demo_lesson(24)
## demo_lesson(25)

# OUTRO ========================================================================
- Class: text
Output: >-
You have completed "Model with tidymodels" lesson of swirl-tidy!
This is the last lesson as of version 0.1.0.
Congratulations on making this far. You've done really well!
Drop in to see what could be future development in "Epilogue".
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions 01_overview/lesson.yaml → Overview/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- Class: meta
Course: swirl-tidy
Lesson: 01_overview
Lesson: Overview
Author: Seo-young Silvia Kim
Type: Standard
Organization: American University
Expand Down Expand Up @@ -120,5 +120,5 @@
# OUTRO ========================================================================
- Class: text
Output: >-
You have completed "01_overview" lesson of swirl-tidy!
You have completed "Overview" lesson of swirl-tidy!
I will see you in the next lesson.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- Class: meta
Course: swirl-tidy
Lesson: 20_program_purrr
Lesson: Program_with_purrr
Author: Seo-young Silvia Kim
Type: Standard
Organization: American University
Expand Down Expand Up @@ -71,7 +71,6 @@
# OUTRO ========================================================================
- Class: text
Output: >-
You have completed "20_program_purrr" lesson of swirl-tidy!
This is the last lesson as of version 0.1.0.
Congratulations on making this far. You've done really well!
You have completed "Program with purrr" lesson of swirl-tidy!
I will see you in the next lesson.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions 08_tidy_tibble/lesson.yaml → Tidy_with_tibble/lesson.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- Class: meta
Course: swirl-tidy
Lesson: 08_tidy_tibble
Lesson: Tidy_with_tibble
Author: Seo-young Silvia Kim
Type: Standard
Organization: American University
Expand Down Expand Up @@ -41,7 +41,7 @@
## demo_lesson(4)
- Class: text
Output: >-
We already explored tibble basics in lesson "02_intro_tibbles".
We already explored tibble basics in lesson "Introduction_to_tibbles".
As promised, here you will learn how to convert other types of
data structures (list, matrix, vector, ...) into tibbles, create transposed
tibbles, add rows/columns, and tidy the data frame's column names.
Expand Down Expand Up @@ -71,6 +71,6 @@
# OUTRO ========================================================================
- Class: text
Output: >-
You have completed "08_tidy_tibble" lesson of swirl-tidy!
You have completed "Tidy with tibble" lesson of swirl-tidy!
I will see you in the next lesson.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 05bf1f8

Please sign in to comment.