Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix headers #123

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions 01_intro_to_r/intro_to_r.html
Original file line number Diff line number Diff line change
Expand Up @@ -1683,8 +1683,10 @@ <h3>R Packages</h3>
<div id="creating-a-reproducible-lab-report" class="section level3">
<h3>Creating a reproducible lab report</h3>
<p>We will be using R Markdown to create reproducible lab reports. See the following videos describing why and how:</p>
<p><a href="https://youtu.be/lNWVQ2oxNho"><strong>Why use R Markdown for Lab Reports?</strong></a> <iframe width="560" height="315" src="https://www.youtube.com/embed/lNWVQ2oxNho" frameborder="0" allowfullscreen></iframe></p>
<p><a href="https://youtu.be/o0h-eVABe9M"><strong>Using R Markdown for Lab Reports in RStudio</strong></a> <iframe width="560" height="315" src="https://www.youtube.com/embed/o0h-eVABe9M" frameborder="0" allowfullscreen></iframe></p>
<p><a href="https://youtu.be/lNWVQ2oxNho"><strong>Why use R Markdown for Lab Reports?</strong></a></p>
<p><iframe width="560" height="315" src="https://www.youtube.com/embed/lNWVQ2oxNho" frameborder="0" allowfullscreen></iframe></p>
<p><a href="https://youtu.be/o0h-eVABe9M"><strong>Using R Markdown for Lab Reports in RStudio</strong></a></p>
<p><iframe width="560" height="315" src="https://www.youtube.com/embed/o0h-eVABe9M" frameborder="0" allowfullscreen></iframe></p>
<p>In a nutshell, in RStudio, go to New File -&gt; R Markdown… Then, choose “From Template” and then choose <code>Lab Report for OpenIntro Statistics Lab 1</code> from the list of templates.</p>
<p>Going forward you should refrain from typing your code directly in the console, as this makes it very difficult to remember and reproduce the output you want to reference. Potentially the most important feature of R Markdown files is that they allow for us to nest our <code>R</code> code within a written report. In an R Markdown file, <code>R</code> code appears in a gray box, which we call “code chunks.” The R Markdown file knows that the gray box contains <code>R</code> code because it begins with three tick marks (```), followed by two curly braces that contain a lowercase letter r ({r}). You’ve already seen this above!</p>
<p>Instead of typing our <code>R</code> code into the console, we encourage you to type any code you produce (final correct answer, or anything you’re just trying out) in the <code>R</code> code chunk associated with each problem. You can execute the <code>R</code> code you type in these code chunks similar to how you typed code into the console and pressed enter/return. Within the code chunk there are two ways to execute a line of <code>R</code> code: (1) place your cursor on the line on code and press <code>Ctrl-Enter</code> or <code>Cmd-Enter</code> at the same time, or (2) place your cursor on the line and press the “Run” button in the upper right hand corner of the R Markdown file. Alternatively, if you wanted to run all of the <code>R</code> code in a given code chunk, you can click on the “Play” button in the upper right hand corner of the code chunk (green sideways triangle).</p>
Expand Down Expand Up @@ -1831,7 +1833,7 @@ <h2>More Practice</h2>
<div id="resources-for-learning-r-and-working-in-rstudio" class="section level2">
<h2>Resources for learning R and working in RStudio</h2>
<p>That was a short introduction to R and RStudio, but we will provide you with more functions and a more complete sense of the language as the course progresses.</p>
<p>In this course we will be using the suite of R packages from the <strong>tidyverse</strong>. The book <a href="https://r4ds.had.co.nz/">R For Data Science</a> by Grolemund and Wickham is a fantastic resource for data analysis in R with the tidyverse. If you are Goggling for R code, make sure to also include these package names in your search query. For example, instead of Goggling “scatterplot in R”, Goggle “scatterplot in R with the tidyverse”.</p>
<p>In this course we will be using the suite of R packages from the <strong>tidyverse</strong>. The book <a href="https://r4ds.hadley.nz/">R For Data Science</a> by Grolemund and Wickham is a fantastic resource for data analysis in R with the tidyverse. If you are Goggling for R code, make sure to also include these package names in your search query. For example, instead of Goggling “scatterplot in R”, Goggle “scatterplot in R with the tidyverse”.</p>
<p>These may come in handy throughout the semester:</p>
<ul>
<li><a href="https://github.com/rstudio/cheatsheets/raw/main/rmarkdown-2.0.pdf">RMarkdown cheatsheet</a></li>
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ It incorporates the tidyverse syntax from the `dplyr` package for data manipulat

## Labs

1. [Intro to R](http://openintrostat.github.io/oilabs-tidy/01_intro_to_r/intro_to_r.html)
2. [Intro to data](http://openintrostat.github.io/oilabs-tidy/02_intro_to_data/intro_to_data.html)
4. [Probability](http://openintrostat.github.io/oilabs-tidy/03_probability/probability.html)
3. [Normal distribution](http://openintrostat.github.io/oilabs-tidy/04_normal_distribution/normal_distribution.html)
1. [Intro to R](http://sarsteg.github.io/oilabs-tidy/01_intro_to_r/intro_to_r.html)
2. [Intro to data](http://sarsteg.github.io/oilabs-tidy/02_intro_to_data/intro_to_data.html)
4. [Probability](http://sarsteg.github.io/oilabs-tidy/03_probability/probability.html)
3. [Normal distribution](http://sarsteg.github.io/oilabs-tidy/04_normal_distribution/normal_distribution.html)
5. Foundations of inference
a. [Sampling distributions](https://openintro.shinyapps.io/sampling_distributions/)
b. [Confidence intervals](https://openintro.shinyapps.io/confidence_intervals/)
6. [Inference for categorical data](https://openintro.shinyapps.io/inf_for_categorical_data/)
7. [Inference for numerical data](http://openintrostat.github.io/oilabs-tidy/07_inf_for_numerical_data/inf_for_numerical_data.html)
8. [Simple linear regression](http://openintrostat.github.io/oilabs-tidy/08_simple_regression/simple_regression.html)
9. [Multiple linear regression](http://openintrostat.github.io/oilabs-tidy/09_multiple_regression/multiple_regression.html)
a. [Sampling distributions](https://sarsteg.shinyapps.io/sampling_distributions/)
b. [Confidence intervals](https://sarsteg.shinyapps.io/confidence_intervals/)
6. [Inference for categorical data](https://sarsteg.shinyapps.io/inf_for_categorical_data/)
7. [Inference for numerical data](http://.github.io/oilabs-tidy/07_inf_for_numerical_data/inf_for_numerical_data.html)
8. [Simple linear regression](http://sarsteg.github.io/oilabs-tidy/08_simple_regression/simple_regression.html)
9. [Multiple linear regression](http://sarsteg.github.io/oilabs-tidy/09_multiple_regression/multiple_regression.html)

## Source code for labs

Expand Down