I. Schedule

II. Pre-Workshop Installation


I. Schedule:

05:30 Networking / Pizza / Setup – we will be at MS early to help folks with install issues.

06:00  R Overview

06:15   R-Studio: inputting scripts (multiple lines of code), entering code, installing packages and libraries, running a script, looking at data, visualizing output.

06:30  Data Management: inputting data, manipulating data/text using Vectors, DataFrames — think Excel Columns (Vectors) and Excel spreadsheet (DataFrame).  We will covering some stats along the way, too.

07:30 Break

07:35  Graphics: Barplots, Histograms, Line, Scatterplots; Graph Formatting.  If you have ideas of what kind of chart you wish to create using R, then this can be discussed on break, afterwards to help out on this.

08:30 Recap


The workshop, which is the 7th time it has been offered, and is designed to get folks up and running using the basics of R.  This includes data management and moving real-world data in and out, performing analytics and generating data visualizations using various graphic packages.  After completing this hands-on workshop, you’ll have a foundation for moving onto more extensive analysis in R.


II. Pre-Boot Camp Software Installation

So that we can make the best use of our time in class, please setup your laptop beforehand. The instructions below describe installing and testing the items we’ll use in the BootCamp.   If anything here is tricky, please email me or post a note in the comments, and we’ll help you straighten out any issues.  You’ll have four steps to get your laptop ready:

(1) Install R

(2) Install RStudio

(3) Test the Installation / Launch R-Studio

(4) Try out some R Code


What if I already have this software installed?

Definitely upgrade by following the instructions below. RStudio and R have are under very active development, and you’ll get the most out of the BootCamp if your installation is in sync with the course.


(1) Install R

Open http://cran.r-project.org/mirrors.html

– Choose one of the USA download mirrors

– In the section Download and Install R, choose Windows / Linux / Mac OS X

Note for Windows users: You only need the base package for this workshop (“Binaries for base distribution”)

Note for Mac OS X users: You need only the R binary, e.g., R-3.1.0.pkg (latest version)


(2) Install RStudio

Open http://www.rstudio.com/ide/download/desktop

Install the appropriate package for your platform

Note: Windows users need Administrator privileges to install RStudio; though in most cases this is a default


(3) Test Your Installation

Start RStudio, and then select File > New File > R-Script.  The screen should looks similar to this.




(4) Copy and Paste this Code into the R-Source Window (upper left)

## Simple program to test the installation of R and R Studio

Years <- seq(2001,2013, by=1)
NYears <- seq(1,13, by=1)
Days <- NYears * 365
Packages <- (120)*exp(0.00077*Days)

plot(Years, Packages, lwd=5)


In the upper-left RStudio panel, click “Source“, and you should see a graph in the bottom-right panel.

If you saw a graph Growth of R, congrats, everything is working!

Some commands of help:

– in the bottom left Console, enter CTRL-L to clear the screen.

– for the plot click zoom, and then re-size using the window edges.  to save right-click, and “Save Image”

– if you wish to save this R-Script, then in the upper menu bar go to File > Save As…  and select a directory to save the file (will have a .R extension).