Skip to content

Commit

Permalink
Added speaker's notes to slideshow.
Browse files Browse the repository at this point in the history
  • Loading branch information
abner-hb committed Jun 6, 2024
1 parent 2799f54 commit a247fa6
Show file tree
Hide file tree
Showing 4 changed files with 272 additions and 35 deletions.
2 changes: 1 addition & 1 deletion 01_the_r_environment.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Don't get frustrated! You don't have to be an expert programmer to use

## Suggestions for Learning **R**

- Learn interactively! Retype and experiment with lots of sample code; you won't break it. These notes contain several code examples and you can find many more online.
- Learn interactively! Retype and experiment with lots of sample code; you won't break it. These notes contain many code examples and you can find many more online.
- Don't worry about getting errors. Even experienced **R** users
make errors all the time. Besides, you can learn a lot from error
messages.
Expand Down
210 changes: 190 additions & 20 deletions slideshow.html
Original file line number Diff line number Diff line change
Expand Up @@ -400,37 +400,103 @@ <h1 class="title">Intro to R with RStudio</h1>
</div>
</div>

</section>
<section>
<section id="welcome" class="title-slide slide level1 center">
<h1>Welcome</h1>

</section>
<section id="about-this-workshop" class="slide level2">
<h2>About this workshop</h2>
<p>For novice or inexperienced coders that want to use <strong>R</strong>. We will use RStudio to:</p>
<ul>
<li class="fragment">Use and write basic functions.</li>
<li class="fragment">Learn how R stores and handles different types of data.</li>
<li class="fragment">Basic ways to create, manipulate, import, clean, and summarize data.</li>
<li class="fragment"><em>NO</em> statistical modeling.</li>
</ul>
</section>
<section id="workshop-format" class="slide level2">
<h2>Workshop format</h2>
<ul>
<li class="fragment">For novice or inexperienced coders that want to use <strong>R</strong>.</li>
<li class="fragment">From 1 to 5 pm.</li>
<li class="fragment">Breaks every 90 minutes.</li>
<li class="fragment">A few slides for context and extra information.</li>
<li class="fragment">A lot of hands-on coding and live demonstrations.</li>
<li class="fragment">All materials will be available after the workshop ends.</li>
</ul>
<aside class="notes">
<p>This workshop runs from 1 to 5 pm, with breaks at least every 90 minutes. Right now I will use a few slides for context and extra information. But it is a WORKshop, so there will be plenty of hands-on coding and live demonstrations. All materials will be available after the workshop ends, so don’t worry about copying these slides.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="tips-for-this-workshop" class="slide level2">
<h2>Tips for this workshop</h2>
<ul>
<li class="fragment">Coding along with me is the best way to learn.</li>
<li class="fragment">Ask questions at any time.</li>
<li class="fragment">During exercises, interact with your peers.</li>
</ul>
<aside class="notes">
<p>Coding along with me is the best way to learn. If you just watch, you will not remember anything after you leave today. Feel free to ask questions at any time. Code can be confusing and mistakes are easy to make, but I’m here to help, so don’t be afraid to interrupt me. During exercises, interact with your peers. We all struggle with computers, but it’s easier if we can help each other.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="what-is-cscar" class="slide level2">
<h2>What is CSCAR?</h2>
<ul>
<li class="fragment">Full name: Consulting for Statistics, Computing and Analytics Research.</li>
<li class="fragment">A unit of the Office of the Vice President of Research.</li>
<li class="fragment">A unit of the Office of the Vice President of Research (OVPR).</li>
<li class="fragment">Guides and trains researchers in data collection, management, and analysis.</li>
<li class="fragment">Also helps researchers to use technical software and advanced computing.</li>
</ul>
<aside class="notes">
<p>Before we get to the coding part, let me tell you a little bit about the people behind this workshop: CSCAR.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="cscar-is-here-to-help-you" class="slide level2">
<h2>CSCAR is here to help you</h2>
<ul>
<li class="fragment">Free, one-hour consultations with graduate-level statisticians.</li>
<li class="fragment">GSRAs are available Monday through Friday, between 9am and 5pm (we close on Tuesdays between noon and 1pm).</li>
<li class="fragment">GSRAs are available for walk-in consultations Monday through Friday, between 9am and 5pm (we close on Tuesdays between noon and 1pm).</li>
<li class="fragment">All of our scheduled appointments can be either remote or in-person.</li>
</ul>
<aside class="notes">
<p>All of our scheduled appointments can be either remote or in-person. So, if you live out of town, work in a different campus or just don’t want to deal with bad weather, you can still ask CSCAR for help.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="contact-cscar" class="slide level2">
<h2>Contact CSCAR</h2>
Expand All @@ -439,24 +505,50 @@ <h2>Contact CSCAR</h2>
<li class="fragment">Self-schedule a consultation with a GSRA using <a href="https://calendar.google.com/calendar/u/0/selfsched?sstoken=UUMyTFpCR1RXbmhYfGRlZmF1bHR8ZWNjNGJlMWZlYTA4ZWE5NzYzNmNkNzgyZjUyZDYxNDg">this link</a>.</li>
<li class="fragment">Address: The University of Michigan, 3560 Rackham, 915 E. Washington St., Ann Arbor, MI 48109-1070.</li>
</ul>
<aside class="notes">
<p>There are several ways to contact CSCAR. You can request a consultation by email or by filling this form. You can also self-schedule a consultation with a GSRA using this link. Our office is at 3560 Rackham, 915 E. Washington St., Ann Arbor, Michigan.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="who-am-i" class="slide level2">
<h2>Who am I?</h2>
<ul>
<li class="fragment">Abner Heredia Bustos, a data science consultant at CSCAR.</li>
<li class="fragment">I want to code with as little time and effort as possible…</li>
<li class="fragment">I want to make coding as simple and effortless as possible…</li>
<li class="fragment">…which means learning it well from the beginning.</li>
</ul>
</section></section>
<aside class="notes">
<p>My name is Abner Heredia Bustos. I am a data science consultant at CSCAR. Apart from this, all you need to know is that, for me, coding is just a mean to an end. This means that I will try hard to make coding as simple and effortless as possible for you; but to achieve this you will need to put some effort in learning the basics.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section>
<section id="why-becoming-a-user" class="title-slide slide level1 center">
<h1>Why becoming a useR?</h1>
<section id="why-do-you-want-to-learn-r" class="title-slide slide level1 center">
<h1>Why do you want to learn R?</h1>

</section>
<section id="r-is-cool-for-statistics-and-graphics" class="slide level2">
<h2>R is cool for statistics and graphics</h2>
<section id="r-is-cheap-and-powerful" class="slide level2">
<h2>R is cheap and powerful</h2>
<ul>
<li class="fragment"><strong>R</strong> is gratis and it runs on Windows, MacOS, and several Unix platforms.</li>
<li class="fragment"><strong>R</strong> is gratis ($0) and it runs on Windows, MacOS, and several Unix platforms.</li>
<li class="fragment">You can start with this:</li>
</ul>
</section>
Expand All @@ -477,13 +569,39 @@ <h2>R is cool for statistics and graphics</h2>

<p>and, in 8 lines of code or less, make this:</p>

<img data-src="slideshow_files/figure-revealjs/height%20by%20nitrogen%20boxplots-1.png" width="960" class="r-stretch"></section>
<img data-src="slideshow_files/figure-revealjs/height%20by%20nitrogen%20boxplots-1.png" width="595" class="r-stretch quarto-figure-center"><aside class="notes">
<p>You can change the colors, the order of the boxes, the names, and much more. Doing all of this will be straightforward once you are familiar with R’s syntax.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="r-is-an-environment-not-a-package" class="slide level2">
<h2>R is an <em>environment</em>, not a package</h2>
<ul>
<li class="fragment">A package is a fixed set of tools.</li>
<li class="fragment">An environment is for combining, modifying, and creating tools.</li>
</ul>
<aside class="notes">
<p>R is very powerful because it is an environment, not a package. A package is a fixed set of tools—what you see is what you get and that’s it. An environment is for combining, modifying, and creating tools. So, even if a tool is not readily available in an environment, chances are there is a way to make it.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="r-has-plenty-of-statistical-tools-and-models" class="slide level2">
<h2>R has plenty of statistical tools and models</h2>
Expand All @@ -496,22 +614,61 @@ <h2>R has plenty of statistical tools and models</h2>
<li class="fragment">Sample size and power calculations.</li>
<li class="fragment">Multivariable analysis (e.g., factor analysis, PCA, and SEM).</li>
</ul>
<aside class="notes">
<p>Luckily for us, other people have already built tools and models to do a lot of statistics. We have…</p>
<p>Better yet, people add more tools every day.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="even-more-tools-and-models" class="slide level2">
<h2>Even more tools and models</h2>
<ul>
<li class="fragment">Users constantly publish their own code packages: more than 13,700 in the Comprehensive <strong>R</strong> Archive Network (CRAN) as of March 2019.</li>
<li class="fragment">Users constantly publish their own code packages: more than 13 thousand in the Comprehensive <strong>R</strong> Archive Network (CRAN) as of March 2019.</li>
<li class="fragment">Many complex statistical routines are not (and may never be) available in other statistical software.</li>
</ul>
<aside class="notes">
<p>As of March 2019, users like you and I have published more than 13 thousand packages in CRAN. Many of these packages implement complex statistical routines that are not (and may never be) available in other statistical software.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="why-isnt-everyone-a-user" class="slide level2">
<h2>Why Isn’t Everyone a Use<strong>R</strong>?</h2>
<ul>
<li class="fragment">Some people only use whatever they learned first, which is not always <strong>R</strong>.</li>
<li class="fragment">Other software seems friendlier.</li>
<li class="fragment">Need to learn rules of packages you use.</li>
<li class="fragment">Some people only use the software they learned first, which is not always <strong>R</strong>.</li>
<li class="fragment">Each package in R has its own rules to learn.</li>
<li class="fragment">Help pages and error messages may be hard to understand.</li>
</ul>
<aside class="notes">
<p>But if R is so good, why isn’t everyone a user? Some people only use whatever they learned first. They took a course in statistics years ago that used SPSS or STATA and that has been enough for them. Also, each package in R has its own rules to learn. You can find a lot of good help for popular packages written by professional developers, but not so much for smaller packages written by other common users. Worst of all, some of the error messages in R are uninformative, so fixing problems can be difficult. Still, I think the advantages are well worth the effort.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="suggestions-for-learning-r" class="slide level2">
<h2>Suggestions for Learning <strong>R</strong></h2>
Expand All @@ -520,6 +677,19 @@ <h2>Suggestions for Learning <strong>R</strong></h2>
<li class="fragment">Don’t worry about getting errors.</li>
<li class="fragment">Ask other <strong>R</strong> users for help.</li>
</ul>
<aside class="notes">
<p>Learn interactively. Retype, experiment, go crazy with sample code. Today I will show you many examples that you can use and you can find many more online. Also, don’t worry about making mistakes. Even professional coders make errors all the time, and you can learn a lot from error messages. Besides you can always ask other users for help. Take advantage of R’s popularity to tap into our collective knowledge. It’s also a good excuse to get up from your desk every once in a while.</p>
<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="some-useful-links" class="slide level2">
<h2>Some useful links</h2>
Expand Down
Loading

0 comments on commit a247fa6

Please sign in to comment.