-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.Rmd
147 lines (106 loc) · 5.68 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
---
output:
html_document:
fig_caption: false
css: custom_styles.css
title: "NPS IMD Intro to R"
---
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-171818766-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-171818766-1');
</script>
</head>
```{r globaloptions, include = FALSE}
knitr::opts_chunk$set(warning=FALSE, message=FALSE)
```
<h2>NPS Inventory and Monitoring Division Intro to R Training: January 31 -- February 2, 2022</h2> {.tabset .tabset-pills}
--------------------------------------------------
### Prep for Training{.tabset}
```{r Install_instructions, child = "IMD_D0_Install_R_and_RStudio.Rmd"}
```
### Day 1: Intro to R {.tabset}
```{r Intro_to_R_tab, child = "IMD_D1_M1_Intro_to_R_tab.Rmd"}
```
```{r Start_coding, child = "IMD_D1_M2_Lets_start_coding.Rmd"}
```
```{r Vars_Fns, child = "IMD_D1_M3_Variables_and_functions.Rmd"}
```
```{r Examining_data, child = "IMD_D1_M4_Examining_data.Rmd"}
```
```{r Data_structures, child = "IMD_D1_M5_Data_structures.Rmd"}
```
```{r Working_with_columns, child = "IMD_D1_M6_Working_with_columns.Rmd"}
```
```{r Basic_data_viz, child = "IMD_D1_M7_Basic_data_viz.Rmd"}
```
```{r Getting_help, child = "IMD_D1_M8_Getting_help.Rmd"}
```
### Day 2: Data Wrangling {.tabset}
```{r Intro_and_Packages, child = "IMD_D2_M1_Intro_and_Packages.Rmd"}
```
```{r Data_Cleaning, child = "IMD_D2_M2_Data_Cleaning.Rmd"}
```
```{r Data_Wrangling, child = "IMD_D2_M3_Data_Wrangling.Rmd"}
```
```{r Data_Reshaping, child = "IMD_D2_M4_Pivoting_Tables.Rmd"}
```
```{r D2_Joining_Tables, child = "IMD_D2_M5_Joining_Tables.Rmd"}
```
### Day 3: Data Viz {.tabset}
```{r data_viz1, child = "IMD_D3_M1_Intro_Data_Viz.Rmd"}
```
```{r data_viz2, child = "IMD_D3_M2_Base_R_Plots.Rmd"}
```
```{r data_viz3, child = "IMD_D3_M3_Basic_GGPlot.Rmd"}
```
```{r data_viz4, child = "IMD_D3_M4_Customize_GGPlot.Rmd"}
```
```{r data_viz5, child = "IMD_D3_M4_Data_Viz_GIS.Rmd"}
```
### Day 4: Best Practices and Iteration {.tabset}
```{r Good_Practices, child = "IMD_D4_M1_Good_Practices.Rmd"}
```
```{r Vectorization, child = "IMD_D4_M2_Vectorization.Rmd"}
```
```{r Control_Structures, child = "IMD_D4_M3_Control_Structures.Rmd"}
```
```{r Troubleshooting_Iteration, child = "IMD_D4_M4_Troubleshooting_Iteration.Rmd"}
```
### Resources
There's a lot of great online material for learning new applications of R. The ones we've used the most are listed below.
<h3>Online Books</h3>
<ul>
<li><a href="https://r4ds.had.co.nz/">R for Data Science</a> First author is Hadley Wickham, the programmer behind the tidyverse. There's a lot of good stuff in here, including a chapter on using R Markdown, which is what we used to generate this training website.</li>
<li><a href="https://ggplot2-book.org//">ggplot2: Elegant Graphics for Data Analysis</a> A great reference on ggplot2 also by Hadley Wickham.</li>
<li><a href="https://bookdown.org/rdpeng/RProgDA/">Mastering Software Development in R</a> First author is Roger Peng, a Biostatistics professor at John Hopkins, who has taught a lot of undergrad/grad students how to use R. He's also one of the hosts of Not So Standard Deviations podcast. His intro to ggplot is great. He's also got a lot of more advanced topics in this book, like making functions and packages.</li>
<li><a href="https://r-pkgs.org/">R Packages</a> Another book by Hadley Wickham that teaches you how to build, debug, and test R packages.</li>
<li><a href="http://adv-r.had.co.nz/">Advanced R</a> Yet another book by Hadley Wickham that helps you understand more about how R works under the hood, how it relates to other programming languages, and how to build packages.</li>
<li><a href="https://mastering-shiny.org/">Mastering Shiny</a> And another Hadley Wickham book on building shiny apps.</li>
</ul>
<h3>Other useful sites</h3>
<ul>
<li><a href="https://teams.microsoft.com/l/channel/19%3a278f30e624114373a65d9611498bd4fe%40thread.skype/Community%2520of%2520Practice?groupId=e4a2e021-b4cf-4cf6-acef-d0978b86c1a0&tenantId=0693b5ba-4b18-4d7b-9341-f32f400a5494">NPS_IMD_Data_Science_and_Visualization > Community of Practice</a> is an IMD work group that meets once a month talk about R and Data Science. There are also notes, materials and recordings from previous meetings, a Wiki with helpful tips, and the chat is a great place to post questions or cool tips you've come across. </li>
<li><a href="https://stat545.com/index.html">STAT545</a> Jenny Bryan's site that accompanies the graduate level stats class of the same name. She includes topics on best practices for coding, and not just how to make scripts work. It's really well done.</li>
<li><a href="https://rstudio.com/">RStudio home page</a> There's a ton of info in the Resources tab on this site, including cheatsheets for each package developed by RStudio (ie tidyverse packages), webinars, presentations from past RStudio Conferences, etc.</li>
<li><a href="https://support.rstudio.com/hc/en-us/articles/201057987-Quick-list-of-useful-R-packages">RStudio list of useful R packages by topic</a></li>
<li><a href="https://happygitwithr.com/">Happy Git with R</a> If you find yourself wanting to go down the path of hosting your code on github, this site will walk you through the process of linking github to RStudio.</li>
</ul>
<hr>
<h3>Resources by Day:</h3>
<h4>Day 3: Data Visualization</h4>
```{r data_viz_res2, child = "IMD_Resources_D3_Data_Viz.Rmd"}
```
### Code printout {.tabset}
```{r Code_printout, child = "IMD_Code_Printout.Rmd"}
```
### Meet the Instructors
```{r about, child = "IMD_Meet_the_Trainers.Rmd"}
```
```{r, include = F}
rm(list = ls())
```