class: center, middle, inverse, title-slide # Responding to analysis and communication: Data science the R way ## R-Ladies ### Jovana, Tijana, Katica & Tatjana ### November 2019 --- background-image: url(https://upload.wikimedia.org/wikipedia/commons/c/c1/Rlogo.png) ??? Image credit: [Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Rlogo.png) --- class: center, middle #How do we do it? ☀ ###Steps of a typical data science project: <img src="images/Program_HW.png" width="500px" /> --- class: inverse, center, middle #Get Started π€«π΄ <img src="images/George_Desk.gif" width="600px" /> --- ##Before there was R, there was S! π€ **R** is a dialect of **S** language that was developed in 1976 by *Rick Becker* and *John Chambers* at the Bell Laboratories. *Rick Becker* gave an excellent keynote talk *"Forty Years of S"* at UseR!2016 conference: [Rick Becker @ UseR!2016](http://blog.revolutionanalytics.com/2016/07/rick-becker-s-talk.html) where he talked about development of **S** language that gives explanations for many characteristics of **R** as we know it, including "<-" assignment operator. 1993 Bell Labs gave StatSci (later Insightful Corp.) an exclusive license to develop and sell the **S** language. Insightful sold its implementation of the **S** language under the product name **S-PLUS**. You can read more about the [history of S, R, and S-PLUS](https://www.whoishostingthis.com/resources/s-plus/) --- ## then, R was born ππΆ In early nineties at the University of Aucklandn in the Department of Statistics **R** was created by *Ross Ihaka* and *Robert Gentleman*. They used [GNU General Public License](http://www.gnu.org/licenses/gpl-2.0.html) to make R open source free software. **R**oss Ihaka and **R**obert Gentleman. *R: A language for data analysis and graphics.* Journal of Computational and Graphical Statistics, 5(3):299β314, 1996 Currently **R** is developed by the **R Development Core Team**, of which *John Chambers* is a member. --- ##Write R Code To start using **R** you need to: 1) Install [R](https://cran.r-project.org/) [(and RStudio)](https://www.rstudio.com/products/rstudio/download/#download) 2) Launch it and set your working directory: letting R know where to find all of your files. 3) Start writing **R** code! **Tip**π‘: - When start working on a new R code/R Project in [RStudio IDE](https://support.rstudio.com/hc/en-us/sections/200107586-Using-the-RStudio-IDE) use ***File -> New Project*** This way your working directory would be set up when you start a new project and it will save all your files in it. Next time you open your project it would set project's directory as a working directory... It would help you with so much [more](https://support.rstudio.com/hc/en-us/articles/200526207-Using-Projects). --- class: center, middle ##[RStudio IDE Cheatsheet](https://www.rstudio.com/wp-content/uploads/2016/01/rstudio-IDE-cheatsheet.pdf) <img src="images/RStudio.png" width="500px" /> ***Top Left:*** Code Editor; -- ***Bottom Left:*** R Console; -- ***Top Right:*** Environment -- ***Bottom Right:*** Plots and Files --- ##Dataset **gapminder** dataset available from **gapminder** package. For each of 142 countries, the package provides values for life expectancy, GDP per capita, and population, every five years, from 1952 to 2007. <!--htd="htmlwidget-61c4ae97191590742e71" style="width:100%;height:auto;" class="datatables html-widget">