## R/RStudio in 70 Minutes - Download the slides: [http://z.umn.edu/rtutorial](http://z.umn.edu/rtutorial) Franklin Sayre [fdsayre@umn.edu](fdsayre@umn.edu)
## Download & Install: - Download the [newest version of R](https://cran.r-project.org/mirrors.html) - Download the [FREE Desktop version of R Studio](https://www.rstudio.com/products/rstudio/download/) - If you can't install R: [Rstudio Cloud](https://rstudio.cloud)
## Objectives - Why use R? - Using RStudio - Getting data into R - Exploring data & summary statistics - Basic Plotting - Where to go next for help
## Ultimate Objective - R is NOT scary - R is kinda fun - R is very powerful
## Where to go after this: - [R-ladies Twin Cities:](https://www.meetup.com/RLadiesTC/) - [RStudio community forum:](https://community.rstudio.com/) - [R for Data Science (book):](https://r4ds.had.co.nz/) - [Stat 545 course in R:](http://stat545.com/) - [What they forgot to teach you about R](https://whattheyforgot.org/)
## UMN Specific Resources For Help - [LATIS Research Workshop Series](http://latis.umn.edu/services-and-programs/research-support/2016-research-workshop-series) - [Programming and Pizza](https://dash.umn.edu/tag/programming-and-pizza/) - [Software Carpentry Workshops](https://dash.umn.edu/software-carpentry/) - [Does0Compute Student Group](https://morrelllab.github.io/compute/)
## Why learn R? - Do new things! - Improve efficiency - Less pointing and clicking = more reproducible - Share your code! - Fun! - Money!
## What is the difference between R & RStudio | R | R Studio | |:-:|:-:| | Programming Language | Integrated Development Environment (IDE) for R | | Software Used to Interpret Language | Code highlighting | | Use any text editor | Many other useful features & Integrations |
## CSV is a good dog ``` 0,0,1,3,1,2,4,7,8,3,3,3,10,5,7,4,7,7,12,18,6,13,11,11,7,7,4,6,8,8,4,4,5,7 0,1,2,1,2,1,3,2,2,6,10,11,5,9,4,4,7,16,8,6,18,4,12,5,12,7,11,5,11,3,3,5,4 0,1,1,3,3,2,6,2,5,9,5,7,4,5,4,15,5,11,9,10,19,14,12,17,7,12,11,7,4,2,10,5,4 0,0,2,0,4,2,2,1,6,7,10,7,9,13,8,8,15,10,10,7,17,4,4,7,6,15,6,4,9,11,3,5,6,3 0,1,1,3,3,1,3,5,2,4,4,7,6,5,3,10,8,10,6,17,9,14,9,7,13,9,12,6,7,7,9,6,3,2 ```
## A few final things: - What happens in R stays in R (until you export it) - Lots of different ways to do things - Lots of community help (google everything) - Lots of packages to accomplish almost any goal
## Let's move to RStudio Copy the following line. In a moment we will open RStudio and you will create a new project and paste this into the console on the bottom left pane ``` download.file("https://raw.githubusercontent.com/fdsayre/TeachingRIntro50Minutes/master/workingcode.R", "introcode.R") ```