Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rstudio-conf-2020/r-for-excel
Browse files Browse the repository at this point in the history
  • Loading branch information
Allison Horst committed Jan 25, 2020
2 parents 7909f51 + 65806f8 commit 0d5a4fa
Show file tree
Hide file tree
Showing 158 changed files with 2,454 additions and 2,373 deletions.
Binary file modified .DS_Store
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion collaborating.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ TODO: swap out gh-pages screenshots

## Summary

By being here at RStudio::conf and in this workshop, you are already part of the R community. We will discuss additional R communtities, how to engage, and how to ask for help.
Since the GitHub session (Chapter \@ref(github)), we have been practicing using GitHub with RStudio to collaborate with our most important collaborator: Future You. Here we will practice using GitHub with RStudio to collaborate with others now, with a mindset towards Future Us. We will also how to engage with the R community broadly and how to continue being a part of the #rstats community, including how to engage on Twitter, and how to ask for help.

*TODO: refine* Main purpose: work better with colleagues, help you help yourself. A big theme of this workshop has been how to more seamlessly collaborate with each other.

Expand Down
Binary file removed curation/~$lobsters.xlsx
Binary file not shown.
Binary file modified docs/R-for-Excel-Users.epub
Binary file not shown.
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-35-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-37-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-39-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-41-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-42-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-43-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-44-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-46-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-47-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-53-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-63-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-64-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-66-1.png
Binary file modified docs/R-for-Excel-Users_files/figure-html/unnamed-chunk-71-2.png
218 changes: 111 additions & 107 deletions docs/closing.html

Large diffs are not rendered by default.

262 changes: 133 additions & 129 deletions docs/collaborating.html

Large diffs are not rendered by default.

472 changes: 214 additions & 258 deletions docs/filters.html

Large diffs are not rendered by default.

409 changes: 210 additions & 199 deletions docs/ggplot2.html

Large diffs are not rendered by default.

593 changes: 293 additions & 300 deletions docs/github.html

Large diffs are not rendered by default.

Binary file added docs/img/commit_circled.png
Binary file added docs/img/commit_message_arrow.png
Binary file added docs/img/commit_pull.png
Binary file added docs/img/commit_push.png
Binary file added docs/img/commit_success.png
Binary file added docs/img/gh_repo_view.png
Binary file added docs/img/issues_MozillaFestival.png
Binary file added docs/img/issues_ggplot2.png
Binary file added docs/img/issues_globalfellows.png
221 changes: 113 additions & 108 deletions docs/index.html

Large diffs are not rendered by default.

218 changes: 111 additions & 107 deletions docs/overview.html

Large diffs are not rendered by default.

365 changes: 189 additions & 176 deletions docs/pivot.html

Large diffs are not rendered by default.

524 changes: 278 additions & 246 deletions docs/rstudio.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/search_index.json

Large diffs are not rendered by default.

417 changes: 202 additions & 215 deletions docs/synthesis.html

Large diffs are not rendered by default.

415 changes: 192 additions & 223 deletions docs/tidying.html

Large diffs are not rendered by default.

346 changes: 197 additions & 149 deletions github.Rmd

Large diffs are not rendered by default.

Binary file added img/commit_branch_ahead_of_origin_master.png
Binary file added img/commit_circled.png
Binary file added img/commit_message_arrow.png
Binary file added img/commit_pull.png
Binary file added img/commit_push.png
Binary file added img/commit_success.png
Binary file added img/excel_messy_saves.png
Binary file added img/gh_repo_view.png
Binary file added img/horst_coding_cases.png
Binary file added img/issues_MozillaFestival.png
Binary file added img/issues_ggplot2.png
Binary file added img/issues_globalfellows.png
Binary file added img/new_project4b.png
19 changes: 16 additions & 3 deletions pivot-tables.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Pivot tables are powerful tools in Excel for summarizing data in different ways.
- Citation: Reed D. 2019. SBC LTER: Reef: Abundance, size and fishing effort for California Spiny Lobster (Panulirus interruptus), ongoing since 2012. Environmental Data Initiative. [doi](https://doi.org/10.6073/pasta/a593a675d644fdefb736750b291579a0).


## Objectives
### Objectives

In R, we can use the `dplyr` package for pivot tables by using 2 functions `group_by` and `summarize` together with the pipe operator `%>%`. We will also continue to emphasize reproducibility in all our analyses.

Expand All @@ -26,7 +26,7 @@ In R, we can use the `dplyr` package for pivot tables by using 2 functions `grou
- Learn `mutate()` and `select()` to work column-wise
- Practice our reproducible workflow with RMarkdown and GitHub

## Resources
### Resources

- [`dplyr` website: dplyr.tidyverse.org](https://dplyr.tidyverse.org/)
- [R for Data Science: Transform Chapter](https://r4ds.had.co.nz/transform.html) by Hadley Wickham & Garrett Grolemund
Expand Down Expand Up @@ -67,6 +67,7 @@ library(tidyverse)
library(readxl)
library(here)
library(skimr) # install.packages('skimr')
library(kableExtra) # install.packages('kableExtra')
```

We used the `read_excel()` before, which is the generic function that reads both .xls and .xlsx files. Since we know that this is a .xlsx file, we will demo using the `read_xlsx()` function.
Expand Down Expand Up @@ -319,7 +320,19 @@ siteyear_summary <- lobsters %>%
siteyear_summary
```

### R code in-line RMarkdown
### Table formatting with `kable()`

There are several options for formatting tables in RMarkdown; we'll show one here from the `kableExtra` package and learn more about it tomorrow.

It works nicely with the pipe operator, so we can build do this from our new object:

```{r, eval=FALSE}
## make a table with our new variable
siteyear_summary %>%
kable()
```

### R code in-line in RMarkdown

Before we let you try this on your own, let's go outside of our code chunk and write in Markdown.

Expand Down
320 changes: 181 additions & 139 deletions rstudio.Rmd

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions synthesis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Source: Fisheries Statistics Division of the NOAA Fisheries

*Note on the data:* "aggregate" here means "These names represent aggregations of more than one species. They are not inclusive, but rather represent landings where we do not have species-specific data. Selecting "Sharks", for example, will not return all sharks but only those where we do not have more specific information."

## Objectives
### Objectives

- Synthesize data wrangling and visualization skills learned so far
- Add a few new tools for data cleaning from `stringr`
- Work collaboratively in an R Markdown file
- Publish your collaborative work as a webpage

## Resources
### Resources

- [Project oriented workflows](https://www.tidyverse.org/blog/2017/12/workflow-vs-script/) by Jenny Bryan

Expand Down
4 changes: 2 additions & 2 deletions tidying.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Here, we'll continue by *reshaping* data frames (converting from long-to-wide, o

![](img/tidy_data.png)

## Objectives
### Objectives

In this session we'll learn some tools to help make our data **tidy** and more coder-friendly. Those include:

Expand All @@ -21,7 +21,7 @@ In this session we'll learn some tools to help make our data **tidy** and more c
- `tidyr::unite()` and `tidyr::separate()` to merge or separate information from different columns
- Detect or replace a string with `stringr` functions

## Resources
### Resources

-- [Ch. 12 *Tidy Data*, in R for Data Science](https://r4ds.had.co.nz/tidy-data.html) by Grolemund & Wickham
- [`tidyr` documentation from tidyverse.org](https://tidyr.tidyverse.org/)
Expand Down

0 comments on commit 0d5a4fa

Please sign in to comment.