1 / 16

Module 1 Installing & Setting Up R

Module 1 Installing & Setting Up R. Do. Learn. See & Hear. Read. PowerPoint must be in View Show Mode to See videos and hyperlinks. Module 1 Setting Up R What We’ll Cover. Installing R Working Directory Set R Shortcut to point to Working Directory Using R Working with R Console

Download Presentation

Module 1 Installing & Setting Up R

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Module 1Installing & Setting Up R Do Learn See & Hear Read PowerPoint must be in View Show Mode to See videos and hyperlinks Install & Setup

  2. Module 1 Setting Up RWhat We’ll Cover • Installing R • Working Directory • Set R Shortcut to point to Working Directory • Using R • Working with R Console • Running Simple R Script • Getting Help • R packages Install & Setup

  3. Installing R • Latest version of R available at CRAN website:http://www.r-project.org/ Install & Setup

  4. Installing R Click video box to see video on downloading & installing R Install & Setup

  5. Installing R • Latest version of R available at CRAN website:http://www.r-project.org/ • Video Demonstration - Downloading & Installing R • Your Turn • Go to CRAN Site (http://www.r-project.org) • Select Mirror Site • Download Base • When R is installed continue slides Install & Setup

  6. Working Directory & Shortcut Video Click video box to see video on Working Directory & R Shortcut Install & Setup

  7. Working Directory • RGUI.exe is installed in C:\Program Files\R\R-2.8.1\bin • R Uses C:\Program Files\R\R-2.8.1\bin as default directory for all R script files • Create Your Own Working Directory to save your R scripts • Go to Windows Explorer • Create a new folder • Pick a name you will remember • Let’s use (C:\Learn_R) • Once you have your new work folder, copy path from address window) Install & Setup

  8. R Shortcut on Desktop • R Shortcut loads RGUI.exe program and uses Start in directory for location of all R scripts • To Configure Desktop R Shortcut to use your Working Directory for Start in: Right click Shortcut, select Properties • Specify Start in path so that R looks in Working Directory you previously created (previous slide) for R Script Files • Paste you’re C:\Learn_R • Now, when you use R shortcut to start R, your C:\Learn_R ory will be where you want it Install & Setup

  9. R Windows R’s Working Windows • R Console • Script Editor • Graphic Window – shows graphic results • User Work is done in Editor • R Console Communicates with R • R Console & Graphics window show results Video on next slide shows an R session Install & Setup

  10. Using R Click video box to see video on Using R Install & Setup

  11. Your Turn to Work With R • It’s Time for you to try R • Your Assignment • Run R (Go to Desktop, double click your R shortcut) • R Console • Try basic arithmetic in R Console • Try the Up arrow to recall previous commands • Clear R Console (right click in window, select Clear) • Run R Script • Open Script (Scr_1_1_Simple_Chart_script.R) • Run script (Control-A; Control-R) • Try to change color to “blue” Install & Setup

  12. Getting Help • R Console • help() • ? • On Line Help: R Seek website (http://rseek.org) • R Documentation & Tutorials • CRAN documentation (http://www.r-project.org/ select manuals) Video on next slide shows how to get help in R and on-line Install & Setup

  13. Getting Help Click video box to see video on R Help Resources Install & Setup

  14. R Packages • What are R Packages • Installing R Packages on Your System • Getting Information on R Packages Video on next slide shows how to install & find out about packages Install & Setup

  15. R packages Click video box to see video on R Packages Install & Setup

  16. Module 1 Wrap up • Congratulations – you are well on your way to Learning R • So far you have: • Installed R • Set up your working directory • Configured your R shortcut to Start in your working directory • Learned about the R Console window • Learned about the R Script Editor Window • Learned about the R Graphics Window • Ran an R script • Learned about R help • Learned about R packages • When you are ready, go to Module 2: Moving Between Excel and R Worlds Remember: you can replay the videos at any time Install & Setup

More Related