You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 01_the_r_environment.qmd
+1-1
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ Don't get frustrated! You don't have to be an expert programmer to use
78
78
79
79
## Suggestions for Learning **R**
80
80
81
-
- 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.
81
+
- 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.
82
82
- Don't worry about getting errors. Even experienced **R** users
83
83
make errors all the time. Besides, you can learn a lot from error
<liclass="fragment">For novice or inexperienced coders that want to use <strong>R</strong>.</li>
413
417
<liclass="fragment">From 1 to 5 pm.</li>
418
+
<liclass="fragment">Breaks every 90 minutes.</li>
414
419
<liclass="fragment">A few slides for context and extra information.</li>
415
420
<liclass="fragment">A lot of hands-on coding and live demonstrations.</li>
421
+
<liclass="fragment">All materials will be available after the workshop ends.</li>
416
422
</ul>
423
+
<asideclass="notes">
424
+
<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>
<liclass="fragment">Coding along with me is the best way to learn.</li>
441
+
<liclass="fragment">Ask questions at any time.</li>
442
+
<liclass="fragment">During exercises, interact with your peers.</li>
443
+
</ul>
444
+
<asideclass="notes">
445
+
<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>
446
+
<styletype="text/css">
447
+
span.MJX_Assistive_MathML {
448
+
position:absolute!important;
449
+
clip:rect(1px,1px,1px,1px);
450
+
padding:1px000!important;
451
+
border:0!important;
452
+
height:1px!important;
453
+
width:1px!important;
454
+
overflow: hidden!important;
455
+
display:block!important;
456
+
}</style></aside>
417
457
</section>
418
458
<sectionid="what-is-cscar" class="slide level2">
419
459
<h2>What is CSCAR?</h2>
420
460
<ul>
421
461
<liclass="fragment">Full name: Consulting for Statistics, Computing and Analytics Research.</li>
422
-
<liclass="fragment">A unit of the Office of the Vice President of Research.</li>
462
+
<liclass="fragment">A unit of the Office of the Vice President of Research (OVPR).</li>
423
463
<liclass="fragment">Guides and trains researchers in data collection, management, and analysis.</li>
424
464
<liclass="fragment">Also helps researchers to use technical software and advanced computing.</li>
425
465
</ul>
466
+
<asideclass="notes">
467
+
<p>Before we get to the coding part, let me tell you a little bit about the people behind this workshop: CSCAR.</p>
<liclass="fragment">Free, one-hour consultations with graduate-level statisticians.</li>
431
-
<liclass="fragment">GSRAs are available Monday through Friday, between 9am and 5pm (we close on Tuesdays between noon and 1pm).</li>
484
+
<liclass="fragment">GSRAs are available for walk-in consultations Monday through Friday, between 9am and 5pm (we close on Tuesdays between noon and 1pm).</li>
432
485
<liclass="fragment">All of our scheduled appointments can be either remote or in-person.</li>
433
486
</ul>
487
+
<asideclass="notes">
488
+
<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>
489
+
<styletype="text/css">
490
+
span.MJX_Assistive_MathML {
491
+
position:absolute!important;
492
+
clip:rect(1px,1px,1px,1px);
493
+
padding:1px000!important;
494
+
border:0!important;
495
+
height:1px!important;
496
+
width:1px!important;
497
+
overflow: hidden!important;
498
+
display:block!important;
499
+
}</style></aside>
434
500
</section>
435
501
<sectionid="contact-cscar" class="slide level2">
436
502
<h2>Contact CSCAR</h2>
@@ -439,24 +505,50 @@ <h2>Contact CSCAR</h2>
439
505
<liclass="fragment">Self-schedule a consultation with a GSRA using <ahref="https://calendar.google.com/calendar/u/0/selfsched?sstoken=UUMyTFpCR1RXbmhYfGRlZmF1bHR8ZWNjNGJlMWZlYTA4ZWE5NzYzNmNkNzgyZjUyZDYxNDg">this link</a>.</li>
440
506
<liclass="fragment">Address: The University of Michigan, 3560 Rackham, 915 E. Washington St., Ann Arbor, MI 48109-1070.</li>
441
507
</ul>
508
+
<asideclass="notes">
509
+
<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>
510
+
<styletype="text/css">
511
+
span.MJX_Assistive_MathML {
512
+
position:absolute!important;
513
+
clip:rect(1px,1px,1px,1px);
514
+
padding:1px000!important;
515
+
border:0!important;
516
+
height:1px!important;
517
+
width:1px!important;
518
+
overflow: hidden!important;
519
+
display:block!important;
520
+
}</style></aside>
442
521
</section>
443
522
<sectionid="who-am-i" class="slide level2">
444
523
<h2>Who am I?</h2>
445
524
<ul>
446
525
<liclass="fragment">Abner Heredia Bustos, a data science consultant at CSCAR.</li>
447
-
<liclass="fragment">I want to code with as little time and effort as possible…</li>
526
+
<liclass="fragment">I want to make coding as simple and effortless as possible…</li>
448
527
<liclass="fragment">…which means learning it well from the beginning.</li>
449
528
</ul>
450
-
</section></section>
529
+
<asideclass="notes">
530
+
<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>
<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>
<h2>R is an <em>environment</em>, not a package</h2>
483
588
<ul>
484
589
<liclass="fragment">A package is a fixed set of tools.</li>
485
590
<liclass="fragment">An environment is for combining, modifying, and creating tools.</li>
486
591
</ul>
592
+
<asideclass="notes">
593
+
<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>
<liclass="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>
635
+
<liclass="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>
504
636
<liclass="fragment">Many complex statistical routines are not (and may never be) available in other statistical software.</li>
505
637
</ul>
638
+
<asideclass="notes">
639
+
<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>
<liclass="fragment">Need to learn rules of packages you use.</li>
655
+
<liclass="fragment">Some people only use the software they learned first, which is not always <strong>R</strong>.</li>
656
+
<liclass="fragment">Each package in R has its own rules to learn.</li>
513
657
<liclass="fragment">Help pages and error messages may be hard to understand.</li>
514
658
</ul>
659
+
<asideclass="notes">
660
+
<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>
<h2>Suggestions for Learning <strong>R</strong></h2>
@@ -520,6 +677,19 @@ <h2>Suggestions for Learning <strong>R</strong></h2>
520
677
<liclass="fragment">Don’t worry about getting errors.</li>
521
678
<liclass="fragment">Ask other <strong>R</strong> users for help.</li>
522
679
</ul>
680
+
<asideclass="notes">
681
+
<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>
0 commit comments