diff --git a/00-course-info.Rmd b/00-course-info.Rmd deleted file mode 100644 index bd75307..0000000 --- a/00-course-info.Rmd +++ /dev/null @@ -1,151 +0,0 @@ -# Course Logistics and Expectations - -```{r setup, include=FALSE} -knitr::opts_chunk$set(echo = TRUE) -``` - -## Course Description - -In this course, you will learn the fundamentals of R, a statistical programming language, and use it to wrangle data for analysis and visualization. The programming skills you will learn are transferable to learn more about R independently and other high-level languages such as Python. At the end of the class, you will be reproducing analysis from a scientific publication! - -## Learning Objectives - -After taking this course, you will be able to: - -- **Analyze** Tidy datasets in the R programming language via data wrangling, summary statistics, and visualization. -- **Describe** how the R programming environment interpret complex expressions made out of functions, operations, and data structures, in a step-by-step way. -- **Apply** problem solving strategies to debug broken code. - -## Course Website - -All course information will be available here: - -https://hutchdatascience.org/Intro_to_R - -Course discussions will be done in the class slack Workspace. Invites will be sent before class. - -Lab Assignments will be done in the class Posit.cloud workspace. Students should register at https://posit.cloud before the lab. Link to join the workspace will be sent out before the first lab. - -## DaSL Courses are a Psychologically Safe Space - -We want everyone to feel ok with asking questions. That's why we adhere to the [Participation Guidelines](https://hutchdatascience.org/communitystudios/guidelines/) for each course. - -Be respectful of each other and how we learn differently. It is never ok to disparage people for their questions. - -## Office Hours - -Office Hours will be held via Teams on Fridays. Feel free to drop into the office hours and work and ask questions as needed. - -## Clinical Network Issues - -We know that learners on the Clinical network are having issues accessing material, including websites. We are working to figure out good workarounds for it. - -If you are connected via VPN, we recommend that you disconnect it while working. - -## Slack - -If you haven't yet joined the FH Data Slack, you can join here: https://hutchdatascience.org/slack/ - -Look for the #dasl-s4-intro-to-r channel - that's where we'll have conversations and field questions. - -## Instructor - -[Ted Laderas, PhD](https://laderast.github.io) -tladera2@fredhutch.org -**Preferred Method of Contact**: Email/Slack -**Expected Response Time**: 24hrs - -I've been teaching R for over 10 years, and have been an active user and data scientist for over 20. I write a lot, including on Data Science, Mental Health, and Bioinformatics. - -I'm always excited to see my learners surpass me, and if you are curious enough, I guarantee you will. - -## Words of Encouragement - -> This was adopted from Andrew Heiss. Thanks! - -I *promise* you can succeed in this class. - -Learning R can be difficult at first—it's like learning a new language, just like Spanish, French, or Chinese. Hadley Wickham—the chief data scientist at RStudio and the author of some amazing R packages you'll be using like `ggplot2`—[made this wise observation](https://r-posts.com/advice-to-young-and-old-programmers-a-conversation-with-hadley-wickham/): - -> It’s easy when you start out programming to get really frustrated and think, “Oh it’s me, I’m really stupid,” or, “I’m not made out to program.” But, that is absolutely not the case. Everyone gets frustrated. I still get frustrated occasionally when writing R code. It’s just a natural part of programming. So, it happens to everyone and gets less and less over time. Don’t blame yourself. Just take a break, do something fun, and then come back and try again later. - -Even experienced programmers find themselves bashing their heads against seemingly intractable errors. If you're finding yourself taking way too long hitting your head against a wall and not understanding, take a break, talk to classmates, e-mail me, etc. - -```{r echo=FALSE, out.width="60%"} -# https://twitter.com/allison_horst/status/1213275783675822080 -knitr::include_graphics("/images/hosrt_error_tweet.png", error = FALSE) -``` - -[![Alison Horst: Gator error](/images/gator_error.jpg)](https://twitter.com/allison_horst/status/1213275783675822080) - -## LeaRning is Social - -- Be curious, not afraid. -- Know that if you have a question, other people will have it. -- Asking questions is our way of taking care of others - -The students who have a bad time in my workshops and courses are the ones who don't work with each other to learn. We are a learning community, and we should help each other to learn. - -> Find a buddy to work with - and check in with them during class and out of class - -If you understand something and someone is struggling with it, try and help them. If you are struggling, take a breath, and try to pinpoint what you are struggling with. - -Our goal is to be better programmers each day, not to be the perfect programmer. There's no such thing as a perfect programmer. I've been learning new things almost every day. - -## Course Times - -I know that everyone is busy, and we'll do our best to accomodate everyone's schedule. - -Classes will be recorded, but please do not use this as an excuse to miss class. Again, those who are curious and ask questions will learn quite a bit. -<<<<<<< HEAD:00-course-info.Rmd -======= - -## Class Schedule - -There are two sections of Intro to R. - -- A hybrid (in-person and online) session on Wednesdays (12-1:30 PM PST) -- A completely remote session on Thursdays (2-3:30 PM PST) - -When you are enrolled, we will send you teams invites for your section. Please note that we are at capacity for in-person. So if you have enrolled as online, please stay online. - -The Hybrid Sections will be held in the Data Science Lab Lounge - Arnold M1- and online. Please note that I will in town and teaching in person on the starred (*) dates below. - -Dates when I am not on campus, you are free to attend in the DaSL lounge, but I will be teaching Remotely. - -If you are remote, feel free to jump between either sessions. - -|Week|Subject|Hybrid Section Dates|Remote Session Dates| -|----|--------------------|--------------------|-----| -|1*|Introduction to R/RStudio|September 25|September 26| -|2|Data Structures|October 2|October 3| -|3*|Data Visualization|October 9|October 10| -|4 (optional)|Community Session|October 16|October 16| -|5*|Data Wrangling 1|October 23|October 24|| -|6|Data Wrangling 2|October 30|October 31|| -|7* (optional)|Community Session|November 6|November 6| -|8|Wrap-up/Discuss Code-a-thon|November 13|November 14| - -Note that the Community Sessions are Shared between the two sections. - -More details about the Code-a-thon to come. - -## Community Sessions - -Two times this quarter we will have learning community sessions, to talk about applications of what we're learning. These sessions are optional, but will help you solidify your learning during the course. - -These dates are: - -October 16 at 12-1:30 PM -November 6 at 12-1:30 PM - -These dates will be sent to you when you register for the course. - -## Patient / Clinical Data is a No on Posit Cloud - -The Posit Cloud workspace is for your learning. Please do not put any patient or clinical information on there. - -## Offerings - -This course is taught on a regular basis at [Fred Hutch Cancer Center](https://www.fredhutch.org/) through the [Data Science Lab](https://hutchdatascience.org/). Announcements of course offering can be found [here](https://hutchdatascience.org/training/). If you wish to follow the course content asynchronously, you may access the course content on this website and [exercises and solutions on Posit Cloud](https://posit.cloud/content/8245357). The Posit Cloud compute space can be copied to your own workspace for personal use, and you can get started via this [introduction](https://hutchdatascience.org/Intro_to_R/intro-to-computing.html#posit-cloud-setup). Or, you can access the [exercises and solutions on GitHub](https://github.com/fhdsl/Intro_to_R_Exercises). ->>>>>>> 878bc15096e4983606198ef00919387d97c9021a:docs/index.md diff --git a/01-intro-to-computing.Rmd b/01-intro-to-computing.Rmd index 417b97d..9975bbb 100644 --- a/01-intro-to-computing.Rmd +++ b/01-intro-to-computing.Rmd @@ -101,10 +101,6 @@ sum(18, 21) sum(18, sum(21, 65)) ``` -Remember the function machine from algebra class? We will use this schema to think about expressions. - -![Function machine from algebra class. ](https://cs.wellesley.edu/~cs110/lectures/L16/images/function.png) - If an expression is made out of multiple, nested operations, what is the proper way of the R Console interpreting it? Being able to read nested operations and nested functions as a programmer is very important. ```{r} diff --git a/02-data-structures.Rmd b/02-data-structures.Rmd index 4aec2ab..1c1a3c4 100644 --- a/02-data-structures.Rmd +++ b/02-data-structures.Rmd @@ -2,13 +2,6 @@ In our second lesson, we start to look at two **data structures**, **vectors** and **dataframes**, that can handle a large amount of data. -## Slides - -```{r} -#test -knitr::include_url("https://hutchdatascience.com/Intro_to_R/slides/lesson1_slides.html") -``` - ## Vectors In the first exercise, you started to explore **data structures**, which store information about data types. You played around with **vectors**, which is a ordered collection of a data type. Each *element* of a vector contains a data type, and there is no limit on how big a vector can be, as long the memory use of it is within the computer's memory (RAM). diff --git a/slides/lesson1_slides.html b/slides/lesson1_slides.html index ba151cb..ea89fc7 100644 --- a/slides/lesson1_slides.html +++ b/slides/lesson1_slides.html @@ -1449,7 +1449,7 @@

Examples

Function machine from algebra class

-

Function machine from algebra class.

+

Function machine from algebra class.

Operations are functions. We could have written:

diff --git a/slides/lesson1_slides.qmd b/slides/lesson1_slides.qmd index 8488e64..b447b95 100644 --- a/slides/lesson1_slides.qmd +++ b/slides/lesson1_slides.qmd @@ -187,7 +187,7 @@ If an expression is made out of multiple, nested operations, what is the proper . . . -![](https://cs.wellesley.edu/~cs110/lectures/L16/images/function.png){alt="Function machine from algebra class." width="300"} +![](){alt="Function machine from algebra class." width="300"} . . . diff --git a/slides/lesson6_slides.html b/slides/lesson6_slides.html index c3ae067..c0405bb 100644 --- a/slides/lesson6_slides.html +++ b/slides/lesson6_slides.html @@ -1199,7 +1199,7 @@

Please fill out survey!

Last but not least…stickers!

-

+

Make your own sticker, add it to the wall of DaSL students!