Difference between revisions of "R tutorial"
From Organic Design wiki
m |
m |
||
| Line 10: | Line 10: | ||
---- | ---- | ||
* R environment | * R environment | ||
| − | search() # Give Search Path for R Objects | + | search() <font color="red"># Give Search Path for R Objects</font> |
| − | searchpaths() # Give Full Search Path for R Objects | + | searchpaths() <font color="red"># Give Full Search Path for R Objects</font> |
| − | ls() # List objects | + | ls() <font color="red"># List objects</font> |
| − | objects() # alternate function to list objects | + | objects() <font color="red"># alternate function to list objects</font> |
| − | rm(list=ls()) # Remove Objects from a Specified Environment | + | rm(list=ls()) <font color="red"># Remove Objects from a Specified Environment</font> |
| − | save.image() # Save R Objects | + | save.image() <font color="red"># Save R Objects</font> |
| − | q() # Terminate an R Session → prompted to Save workspace image? [y/n/c]: | + | q() <font color="red"># Terminate an R Session → prompted to Save workspace image? [y/n/c]:</font> |
** Memory based, can write to → .RData file | ** Memory based, can write to → .RData file | ||
Revision as of 22:16, 14 March 2006
- 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?)
Twenty tasks to do in R
Use a contributed guide as a template fo a list of twenty tasks to do. It must cover;
- 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)
- Create a vector
- Create a matrix
- Create a list
- Subsetting/Indexing
- Indexing from a vector
- Indexing from a matrix
- Indexing from a list
- Plotting data
- Labelling/colours etc
- Ab lines?
- how to read help
- Apropos/example/demo/find etc
- Help example
- ls/rm
- quit



