Presentation is loading. Please wait.

Presentation is loading. Please wait.

Installing R and R Studio

Similar presentations


Presentation on theme: "Installing R and R Studio"— Presentation transcript:

1 Installing R and R Studio
STT 315 Recitation #1

2 Install R Download R from and install it to your computer like any other software program. This gives you a table and a bookshelf

3 Install RStudio Download RStudio from and install it to your computer. This gives you a nice work surface to put on your table. You must install R before you install RStudio!

4 Sit down at the table Open RStudio. Not
Open a new R script file by clicking on the new file icon in the upper left corner. In a web browser, navigate to copy the text on that page and paste it into the script file space in RStudio.

5 Buy a book for your bookshelf (it’s free)
Computer code and datasets in R come in “packages”. These are like books you can buy and put on your bookshelf. Run the command in the script file to “buy” the package “openintro”:

6 Put your book on the table so you can read it
In order to use information in a book you have to take it off the shelf and open it. We do this in R with the require() command. The command library(openintro) will also work.

7 Coming back later Each time you close RStudio, it puts all your books back on the shelf, so you’ll have to use the “require” command for any package you want to use each time you open and use R.

8 Run the script Do some calculations Make some pictures
Export the picture Put it in a document Save the document as a pdf Upload the document to the Recitation Day 1 Dropbox in D2L.


Download ppt "Installing R and R Studio"

Similar presentations


Ads by Google