Presentation is loading. Please wait.

Presentation is loading. Please wait.

LESSON ONE DECISION ANALYSIS Subtopic 4 - R Programming Created by The North Carolina School of Science and Math forThe North Carolina School of Science.

Similar presentations


Presentation on theme: "LESSON ONE DECISION ANALYSIS Subtopic 4 - R Programming Created by The North Carolina School of Science and Math forThe North Carolina School of Science."— Presentation transcript:

1 LESSON ONE DECISION ANALYSIS Subtopic 4 - R Programming Created by The North Carolina School of Science and Math forThe North Carolina School of Science and Math North Carolina Department of Public Instruction.North Carolina Department of Public Instruction Created by The North Carolina School of Science and Math forThe North Carolina School of Science and Math North Carolina Department of Public Instruction.North Carolina Department of Public Instruction

2 Today’s Menu Installation Why do we love R? Finding Help Tutorials

3 Installation Task: Install R on your computer. How? Go to this R download site: http://cran.revolutionanalytics.com/ Install (choose Windows or Linux or Mac)

4 Make it even better! Task: Install R Studio. How? Go to this download site: http://www.rstudio.com/ide/download/desktop Install (choose Windows or Linux or Mac) Now you only ever need to run R Studio.

5 Why do we love R? Who is “we”? Statisticians, decision scientists, analysts, and soon: you guys! It's free It's powerful and easier than most It's very popular for analyzing small to medium datasets Compiled versus interpreted languages It's great for your resume! (Put it on there after you've gone through the tutorials.)

6 Getting started Use setwd(“C:/…”) to set working directory Use dir() to see what’s in your working dir Load data with read.csv or read.table R help: e.g. type ?read and ??read THE GOLDEN RULE OF PROGRAMMING

7 Finding help Compiled languages Use setwd(“C:/…”) to set working directory Use dir() to see what’s in your working dir Load data with read.csv or read.table R help: e.g. type ?read and ??read THE GOLDEN RULE OF PROGRAMMING

8 Golden Rule of Programming The internet knows everything… so ask it! (or: “Someone has inevitably done it before you and wrote about it.”)

9 Golden Rule of Programming The internet knows everything… so ask it! Dear Dr. Google, How do I make a matrix in R? Also, how do I load in a text file? Also, how do I look at my data? You’re the best and I heart you! Sincerely, R. Student

10 R Tutorials Work through R Tutorials 1 and 2


Download ppt "LESSON ONE DECISION ANALYSIS Subtopic 4 - R Programming Created by The North Carolina School of Science and Math forThe North Carolina School of Science."

Similar presentations


Ads by Google