Site Tools


notes:r_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:r_cheat_sheet [2026/06/11 00:24]
114.119.135.121 old revision restored (2026/06/04 10:58)
notes:r_cheat_sheet [2026/06/13 19:09] (current)
188.235.16.74 old revision restored (2026/06/05 07:31)
Line 28: Line 28:
 ===== Plotting ===== ===== Plotting =====
  
-  * ''barplot[myseq]'' creates a bar plot of the ''myseq'' vector.+  * ''barplot[myseq]'' creates a bar plot of the ''myseq'' vector. ''abline(h=y)'' plots a horizontal line at height y.
   * ''plot[x,y]'' plots x vs y e.g. <code>   * ''plot[x,y]'' plots x vs y e.g. <code>
 x=seq[0,20,.1] x=seq[0,20,.1]
Line 45: Line 45:
   * ''mymatrix[,2]'' returns entire second column.   * ''mymatrix[,2]'' returns entire second column.
  
 +===== Statistics =====
 +
 +  * ''mean(myvec)  median(myvec)   sd(myvec)''
 ===== File Handling ===== ===== File Handling =====
  
   * ''list.files()'' to list files in furrent directory   * ''list.files()'' to list files in furrent directory
   * ''source("file.R")'' to load file of code   * ''source("file.R")'' to load file of code
notes/r_cheat_sheet.1781162656.txt.gz ยท Last modified: 2026/06/11 00:24 by 114.119.135.121