Skip to content

Commit

Permalink
add state of previous year
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Aug 6, 2021
1 parent f4dcbe3 commit c16fc0b
Show file tree
Hide file tree
Showing 1,294 changed files with 33,831 additions and 221 deletions.
714 changes: 702 additions & 12 deletions 01-intro.Rmd

Large diffs are not rendered by default.

621 changes: 621 additions & 0 deletions 02-dplyr.Rmd

Large diffs are not rendered by default.

635 changes: 635 additions & 0 deletions 03-tidy.Rmd

Large diffs are not rendered by default.

676 changes: 676 additions & 0 deletions 04-lecture.Rmd

Large diffs are not rendered by default.

741 changes: 741 additions & 0 deletions 05-lecture.Rmd

Large diffs are not rendered by default.

1,169 changes: 1,169 additions & 0 deletions 06-lecture.Rmd

Large diffs are not rendered by default.

781 changes: 781 additions & 0 deletions 07-lecture.Rmd

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions 08-freestyle.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Freestyle

> ... in which we venture into the unknown to show an example data
analysis, gather more data with webscraping and build a small app.

::: {.video-container}
<iframe class="video" src="https://www.youtube.com/embed/pY4da9WCc" allowfullscreen></iframe>
:::

In today's lecture, the script is the result of experimenting
with unseen data as seen in the video. You can refer back
to it in order to get the code if the video goes to fast.
By itself, the script will be less useful than the script
for regular lectures. I hope you can learn something from
how I approach a new task and how I handle mistakes and
errors. The video is largely unedited; I only removed a
portion where all attempts at webscraping failed for a while
because my internet connection was gone...

```{r}
library(tidyverse)
library(rvest)
library(glue)
```

## Christmas Theme!

- Christmas RStudio theme: <https://github.com/gadenbuie/rsthemes>

## Advanced Rmarkdown

- Using the RStudio plugin to insert citations directly from Zotero
- preview of
<https://blog.rstudio.com/2020/11/09/rstudio-1-4-preview-citations/>
- Other output formats:
- <https://bookdown.org/yihui/rmarkdown/>
- <https://github.com/rstudio/rticles>
- note: tinytex package for pdf outputs

## Finding Help Easier

- <https://reprex.tidyverse.org/>

## Into the Unknown: An Example Analysis of Unseen Data

![Into the Unknown, from the giphy
api](https://media0.giphy.com/media/m8WyNwXQUtzuijrtFq/giphy-downsized-medium.gif){.external}

## Feedback

I will send round a link with a feedback form.
It is anonymous, so I have no way of tracking who
submitted it. I will just assume you all did and
count it as a completed exercise.
95 changes: 95 additions & 0 deletions 90-resources.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Resources {-}

Learning R can be quite the journey.
This is why I am collecting useful links to more resources on this extra page.
Some will help you understand the topics covered, some dive deeper and some will be interesting if you want to discover more cool things you can do with R.

## Learning the tidyverse

- [R for Data Science](https://r3ds.had.co.nz/) [@wickhamDataScienceImport2017]
- [R4DS online Community](https://www.rfordatasci.com/)
- [RStudio Cheat Sheets!](https://www.rstudio.com/resources/cheatsheets/)
- [The Modern Dive](https://moderndive.com/) [@kimStatisticalInferenceData2019]
- [RStudio Education](https://education.rstudio.com/)

## Learning Rmarkdown

- [rmarkdown cheatsheet](https://rstudio.com/wp-content/uploads/2015/03/rmarkdown-cheatsheet-2.0.pdf)
- [rmarkdown reference](https://rstudio.com/wp-content/uploads/2015/03/rmarkdown-reference.pdf)
- [pandoc manual (advanced)](https://pandoc.org/MANUAL.html#pandocs-markdown)
- [rmarkdown for reproducible analysis](https://reproducible-analysis-workshop.readthedocs.io/en/latest/6.RMarkdown-knitr.html)
- [rmarkdown website](https://rmarkdown.rstudio.com/index.html)

## Learning R in general

- [Advanced R](https://adv-r.hadley.nz/) [@wickhamAdvancedSecondEdition2019]
- [Hands on Programming with R](https://rstudio-education.github.io/hopr/) [@grolemundHandsOnProgrammingWrite2014]
- [R Packages](http://r-pkgs.had.co.nz/) [@wickhamPackagesOrganizeTest2015]
- [Data Visualization: A Practical Introduction](https://socviz.co/index.html) [@healyDataVisualizationPractical2018]
- [Graph Cookbook](http://www.cookbook-r.com/Graphs/) [@changGraphicsCookbookPractical2013]

## Learning Statistics

- [Intuitive Biostatistics](http://www.intuitivebiostatistics.com/) [@motulskyIntuitiveBiostatisticsNonmathematical2017]
- [Statistics Done Wrong](https://www.statisticsdonewrong.com/) [@reinhartStatisticsDoneWrong2015]
- [StatQuest!!! with Josh Starner](https://statquest.org/video-index/#statistics)
- [Modern Statistics for Modern Biology](https://www.huber.embl.de/msmb/index.html)

## Talks, Podcasts, Blogs, Videos

Just some of the people with inspiring blogposts, videos and the likes.

- David Robinson
- [YouTube](https://www.youtube.com/user/safe4democracy)
- [website](http://varianceexplained.org/)
- Julia Silge
- [YouTube](https://www.youtube.com/c/JuliaSilge/)
- [website](https://juliasilge.com/)
- Alison Hill
- [website](https://alison.rbind.io/)
- Thomas Lin Pedersen
- [website](https://www.data-imaginist.com/)

## Misc

- [Cute and insightful illustrations](https://github.com/allisonhorst/stats-illustrations) [@ArtworkAllisonHorst]
- [Happy Git with R](https://happygitwithr.com/)

## Package Documentation

- [tidyverse](https://www.tidyverse.org/)
- [tidymodels](https://www.tidymodels.org/)
- [rmarkdown](https://rmarkdown.rstudio.com/docs/)
- [readr](https://readr.tidyverse.org/)
- [dplyr](https://dplyr.tidyverse.org/)
- [ggplot](https://ggplot2.tidyverse.org/)
- [tidyr](https://tidyr.tidyverse.org/)
- [stringr](https://stringr.tidyverse.org/)
- [purrr](https://purrr.tidyverse.org/)
- [ragg](https://ragg.r-lib.org/)

## Books and Manuals

- [Tidymodels book](https://www.tmwr.org/)
- [ggplot book](https://ggplot2-book.org/)
- [Rmarkdown Cookbook](https://bookdown.org/yihui/rmarkdown-cookbook/)
- [Rmarkdown Book](https://bookdown.org/yihui/rmarkdown/)

## Getting Help

- [How to find help](https://www.tidyverse.org/help/#reprex)
- [R4DS online learning community](https://www.rfordatasci.com/)

## Lists of Resources

The meta section. This is a list of lists:

- [big book of R](https://www.bigbookofr.com/)
- [r for the rest of us](https://rfortherestofus.com/resources/)

## Packages that enable this lecture format

- R by @rcoreteamLanguageEnvironmentStatistical2020a
- knitr by @R-knitr
- rmarkdown by @R-rmarkdown
- xaringan by @xieXaringanPresentationNinja2020
2 changes: 0 additions & 2 deletions 99-references.Rmd
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
`r if (knitr::is_html_output()) '
# References {-}
'`
10 changes: 10 additions & 0 deletions R/_common.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
library(knitr)
library(rmarkdown)

options(tidyverse.quiet = TRUE)

opts_chunk$set(
out.width = "100%",
warning = FALSE,
message = FALSE
)
2 changes: 1 addition & 1 deletion _bookdown.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
book_filename: "dataintro"
delete_merged_file: true
output_dir: docs
before_chapter_script: "_common.R"
before_chapter_script: "R/_common.R"
language:
ui:
chapter_name: "Lesson "
28 changes: 28 additions & 0 deletions _bookdown_files/dataintro_cache/html/__packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
base
knitr
rmarkdown
tidyverse
ggplot2
tibble
tidyr
readr
purrr
dplyr
stringr
forcats
palmerpenguins
tidymodels
broom
scales
dials
infer
modeldata
parsnip
recipes
rsample
tune
workflows
workflowsets
yardstick
glue
rvest
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit c16fc0b

Please sign in to comment.