R Basics

Augustin Luna
17 July, 2016

Research Fellow
Department of Biostatistics and Computational Biology
Dana-Farber Cancer Institute

What is R?

  • Free, open source
  • Started in 1993
  • Geared towards scientific computing
    • Created by Ross Ihaka and Robert Gentleman (statisticians)
  • Interpreted; similar to Python and MATLAB

First Script: Hello World!

  • cat() prints a simple message in the console
cat("Hello World!")
Hello World!

Running Hello World Script

  • “Run” button runs current line or selected lines
  • “Source” button runs all lines in file