User Tools

Site Tools


r:navigating

Differences

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

Link to this comparison view

Next revision
Previous revision
r:navigating [2016/09/28 08:41] – created hkimscilr:navigating [2019/09/20 10:19] (current) – [Built-in Datasets] hkimscil
Line 6: Line 6:
 > getwd() > getwd()
 [1] "/home/paul/research/Bayes" [1] "/home/paul/research/Bayes"
 +</code>
 +
 +<code>
 +setwd("c:/r_data")
 +getwd()
 </code> </code>
 ====== Saving Workspace ====== ====== Saving Workspace ======
Line 32: Line 37:
  
 ====== Built-in Datasets ====== ====== Built-in Datasets ======
 +Find out available data set.
 +<code>data()</code>
 +Choose a specific data set from a specific package name.
 <code>> data(dsname, package="pkgname")</code> <code>> data(dsname, package="pkgname")</code>
 <code>> require(graphics) <code>> require(graphics)
Line 38: Line 46:
      main = "pressure data: Vapor Pressure of Mercury")      main = "pressure data: Vapor Pressure of Mercury")
      </code>      </code>
-<code>> > plot(faithful, xlab = "eruptions",+<code>> plot(faithful, xlab = "eruptions",
      ylab = "waiting",      ylab = "waiting",
      main = "old faithful erruption and waiting ratio")      main = "old faithful erruption and waiting ratio")
Line 44: Line 52:
 {{faithful_data_graphic.png}} {{faithful_data_graphic.png}}
  
-<code>> > data(Cars93, package="MASS") </code>+<code>> data(Cars93, package="MASS") </code>
 <code>> data(package="pkgname") </code> <code>> data(package="pkgname") </code>
  
r/navigating.1475021481.txt.gz · Last modified: 2016/09/28 08:41 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki