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/12 04:22]
47.82.55.215 old revision restored (2026/06/03 01:33)
notes:r_cheat_sheet [2026/06/13 18:21] (current)
216.73.216.197 old revision restored (2026/06/12 19:48)
Line 37: Line 37:
   * ''persp(mymat)'' plots a contour map in perspective.   * ''persp(mymat)'' plots a contour map in perspective.
   * ''image(volcano)'' generates a heat map of the matrix.   * ''image(volcano)'' generates a heat map of the matrix.
 +  * ''qplot(weights, prices, color=types)'' - more attractive plotting using ggplot2 package.
 ===== Matrices ===== ===== Matrices =====
  
Line 67: Line 67:
   * ''read.csv('mydat.csv')'' to load a csv file   * ''read.csv('mydat.csv')'' to load a csv file
   * ''read.table'' to read text data with other separators   * ''read.table'' to read text data with other separators
 +  * ''con<-url("http://google.com","r")'' to read a webpage
 +  * ''x<=readLines(con)'' to convert to an array of lines
notes/r_cheat_sheet.1781263375.txt.gz · Last modified: 2026/06/12 04:22 by 47.82.55.215