18.05 R Code
R and RStudio
Home of the R project,
Get RStudio here.
Tutorials
Tutorial 1A
Tutorial 1B
Tutorial rle()
Tutorial for loops
R code that shows how to do basic plotting (short)
Studios
This section holds all the posted studio materials plus some extra files used for preparation or analysis.
studio1.zip
studio1-birthdays.r (extra code to make plots)
studio2.zip
studio3.zip
studio4.zip
studio5.zip
studio6.zip
No studio 7
studio8.zip
studio9.zip
studio9-prep.r
No studio 10
studio11.zip
studio12.zip
Other R Code
colMatches.r
oldfaithful_simple.r
• oldfaithful data (This a standard R data set.)
sensorsim.r
• runsensorsim.r (Simulates a network of sensors.)
R code used for reading and slides
Studio 3 solutions
Class 6 prep
Class 6 slides
Class 7 prep
Class 14 prep
Class 16 prep
Class 18 experiment
Class 19 prep
Class 19 slides
Class 20 prep
Class 21
Class 23 prep
Class 24 prep
Class 24 slides
Class 25 prep
Class 25 slides
Problem sets
(Code used to produce graphs do computations numbers for problem sets and their solutions.)
ps1.r
ps2.r
ps3.r
ps3-sol.r (posted with pset solutions)
ps3prob2data.r (needed to do pset)
ps6.r
ps6-post.r (posted with pset solutions)
ps7.r
ps8.r
ps9.r