Imperial College/Courses/Fall2008/Synthetic Biology (MRes class)/'R' Tutorial/Basic Commands

 Introduction to 'R'  Overview Basic Commands Practical 1 Practical 2 'R' Resources  

Running 'R' programs

 * From windowing system
 * From a file
 * source("my_program.txt")
 * From command line
 * R

Getting help with functions and features

 * 'R' has an inbuilt help facility. If the function/feature name is toto, you can find help by typing either:
 * help(toto)
 * ?toto
 * Remember, 'R' is case sensitive.

Data types

 * Vectors
 * Lists
 * Factors
 * Matrices
 * Data Frames

Basic inputs/outputs

 * read.table(filename, HEADER=TRUE)
 * read.cvs(filename)

Basic plotting

 * plot
 * hist
 * boxplot
 * par
 * mtext
 * title
 * curve
 * abline

Regression analysis

 * lm

ODE solver

 * lsoda