Putting the
R
in Reed CIS

Chester Ismay

Friday, August 5, 2016

Google Form for Questions: http://bit.ly/cis_r

What is R?

What has R been?


What is R becoming?

Learning how to use R

RStudio and R Markdown

  • Nice user interface
  • Free
  • RStudio in Desktop and Server versions
  • Reproducible research using R Markdown



RStudio and R Markdown

  • No more copy-and-paste!

But then I have to learn R…

Like learning a foreign language!

Similarities (In the simplest case)

R Foreign Language R examples
functions verb - sqrt()
- arrange()
- lm()
command sentence - exp(3)
- tail(babynames)

KEY POINT - Exposure makes you fluent!

R at work

To the beeR!

My Untappd ratings

My Untappd R data package

https://github.com/ismayc/izzyuntappd

DEMO

install.packages("devtools")
devtools::install_github("ismayc/izzyuntappd")

File -> New File -> R Markdown -> From Template -> izzyuntappd vignette

Thanks!

sessionInfo()
## R version 3.3.0 (2016-05-03)
## Platform: x86_64-apple-darwin13.4.0 (64-bit)
## Running under: OS X 10.11.6 (El Capitan)
## 
## locale:
## [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
## [1] revealjs_0.7            rmarkdown_1.0           knitr_1.13              ggplot2_2.1.0          
## [5] dplyr_0.5.0             pnwflights14_0.1.0.9000
## 
## loaded via a namespace (and not attached):
##  [1] Rcpp_0.12.6      digest_0.6.9     assertthat_0.1   plyr_1.8.4       grid_3.3.0      
##  [6] R6_2.1.2         gtable_0.2.0     DBI_0.4-1        formatR_1.4      magrittr_1.5    
## [11] scales_0.4.0     evaluate_0.9     stringi_1.1.1    tools_3.3.0      stringr_1.0.0   
## [16] munsell_0.4.3    yaml_2.1.13      colorspace_1.2-6 htmltools_0.3.5  tibble_1.1