Difference between revisions of "R tutorial"

From Organic Design wiki
m (Twenty tasks to do in R)
m
Line 10: Line 10:
 
*Thousands of pages of documentation including short guides / reference cards
 
*Thousands of pages of documentation including short guides / reference cards
  
 +
====Command prompt====
 +
* > <font color="red>''type commands after the prompt''</font>
 +
* + <font color="red>''continuation of commands is expected after the plus symbol''</font>
 
====Twenty tasks to do in R====
 
====Twenty tasks to do in R====
  

Revision as of 22:30, 14 March 2006

TODO

Tasks available from web which utilze example data available in R - object assignment, subsetting, plotting, mathematical functions, sorting etc (20 tasks?)
  • Usage/interaction within environment
  • Bioconductor resources/vignettes(including downloading)
  • Bioconductor basics (any resources for limma out there?)

Resources

Command prompt

  • > type commands after the prompt
  • + continuation of commands is expected after the plus symbol

Twenty tasks to do in R

Use a contributed guide as a template fo a list of twenty tasks to do. It must cover;


  • Useful commands in the R environment
search()              # Give Search Path for R Objects
searchpaths()         # Give Full Search Path for R Objects
ls()                  # List objects
objects()             # alternate function to list objects
rm(list=ls())         # Remove Objects from a Specified Environment
save.image()          # Save R Objects
q()                   # Terminate an R Session →  prompted to Save workspace image? [y/n/c]:
    • Memory based, can write to → .RData file
  • File handling
  • Object creation
  • Different types of data
  • Quiting R
  • Recommended contributed guide/reference card
Contributed material
  • usingR-2.pdf Chapter 1 → Starting up.
  • MGEDI → installing R/Bioconductor p30 - p34 (documentation/help)


  1. Create a vector
  2. Create a matrix
  3. Create a list
  4. Subsetting/Indexing
  5. Indexing from a vector
  6. Indexing from a matrix
  7. Indexing from a list
  8. Plotting data
  9. Labelling/colours etc
  10. Ab lines?
  11. how to read help
  12. Apropos/example/demo/find etc
  13. Help example
  14. ls/rm
  15. quit