STAT 545A Class meeting 002
Deep thoughts re: data analytic work +
Getting started with R and RStudio
web companion: STAT 545 web home > Syllabus > cm002
Monday, September 8, 2014
Dr. Jennifer (Jenny) Bryan
Department of Statistics and Michael Smith Laboratories
University of British Columbia
@JennyBryan ← personal, professional Twitter
@STAT545 ← Twitter as lead instructor of this course
th_is is different from th-is
spaces in filenames are EVIL
want computer to do tedious work for you?
then you must give precise instructions
A place for everything,
everything in its place.
source is real
“The source code is real. The objects
are realizations of the source code. Source
for EVERY user modified object is placed in a
particular directory or directories, for later
editing and retrieval.”
-- from the Emacs Speaks Statistics (ESS) manual
write code for humans,
write data for computers
data written for humans ...
... is hard to explain to a computer
code written (only) for computers ...
... creates misery for humans
switch to live coding ...
see web companion for indicative content:
STAT 545 web home > Syllabus > cm002
Students with R/RStudio experience were encouraged to
contribute something to the “Learn R” world.
Suggestion: use, review, extend swirl (see next slide).
you do know that R ≠ RStudio, right?
we use RStudio because it makes us happier in our
work, but notice that nothing we produce --
no code, no figures, nothing -- requires
RStudio to be created, appreciated or
this is important
this is intentional
Deep Thoughts, tree, mist, sun
Loco Steve, Goldie Dawn
Messy beer cans
Hanging beer cans
Messy computer desktop
Winner of 2004 Obfuscated C code competition
Cheers “Where Everybody Knows Your Name”
PC vs Mac
You can’t get there from here
Hand-crafted basket woven chair