class: center, middle, inverse, title-slide # Intro to R and RStudio ## Mini-Lecture 2 ### Ben Baumer ### SDS 192Jan 29, 2020(
http://beanumber.github.io/sds192/lectures/02-intro_to_R.html
) --- class: center, middle # Announcements --- # Textbook .pull-left[ <img src="https://images.tandf.co.uk/common/jackets/amazon/978149872/9781498724487.jpg" width="300px"> ] .pull-right[ - 📣: [Preview of 2nd edition free online](https://beanumber.github.io/mdsr2e/) ] --- # About you - We have 101 Slack users - SDS 236 students are on as well! - several questions were asked and answered! - check your notification settings - Half of you are 1st- or 2nd-years - 13 post-bacs, seniors - 16 juniors, Adas - 14 sophomores - 17 first-years - Majors - SDS, ECO, CSC, BIO, ENV, GOV, MTH, PSY - ARC, EDC, CLT, MED, LNG, ... --- # You're here because... .pull-left[ - SDS major or minor - learning about programming (esp. R) - practical, applied experience (jobs) - interested in working with data - curious about data science ] .pull-right[ ![](https://media.giphy.com/media/l0K4mYKI1zvLkdv5m/giphy.gif) ] -- - heard good things about course -- > "to learn R and to **conquer fear over computer**" --- # R experience - 80% **of respondents** report zero or little R experience! --- # Homework .pull-left[ Download and install R .center[![](https://cdn.iconscout.com/icon/free/png-256/r-5-283170.png)] (https://cloud.r-project.org/) ] .pull-right[ Download and install RStudio Desktop .center[![](https://fowlercs.com/wp/wp-content/uploads/2018/02/rstudio.png)] (https://www.rstudio.com/products/rstudio/download/) ] --- # You have a choice, but... .pull-left[ Option `A`: [RStudio Server](http://rstudio.smith.edu) - online, cloud-based - no installation - can use from anywhere - have to share resources! ] .pull-right[ Option `B`: RStudio Desktop - have to install - installation is local - can monopolize your own resources - can still collaborate ] -- - choose `B`... -- - ...unless you have a Chromebook --- class: center, middle # R Markdown --- # R Markdown .center[![](http://rmarkdown.rstudio.com/images/markdownChunk.png)] --- # Example .center[![](http://rmarkdown.rstudio.com/images/quicktourExample.png)] --- # Markdown + Pandoc .center[![](http://rmarkdown.rstudio.com/images/RMarkdownOutputFormats.png)] --- # Now 1. Lab \#1: [Intro to R and RStudio](../lab-intro_to_r.html) - No submissions - Get credit by responding to prompt on Slack channel `#lab1` - Deadline: before next class (11 am sharp!) 2. [Homework \#1](../hw/hw_viz.html) - due next Sunday just before midnight