R Starter Kit
Using R for Data Analysis and Graphics -
Introduction, Examples and Commentary by John Maindonald

This page describes how to access and use the book Using R for Data Analysis and Graphics - Introduction, Examples and Commentary.

Obtaining the Book

Obtaining the data files

You can reproduce the examples from the book by obtaining the data files from within R. You can get the data files by typing the following command from within R

load(url("http://maths-people.anu.edu.au/~johnm/r/dsets/usingR.RData"))

After typing this, you can use the ls() command to see what has been loaded.

ls()

 [1] "ais"            "anesthetic"     "austpop"        "Cars93.summary" "dewpoint"      
 [6] "dolphins"       "elasticband"    "florida"        "hills"          "huron"         
[11] "islandcities"   "kiwishade"      "last.warning"   "leafshape"      "milk"          
[16] "moths"          "oddbooks"       "orings"         "possum"         "primates"      
[21] "rainforest"     "seedrates"      "tinting" 

If you wish to save the data on your computer, you can use the save.image() command. For example.

save.image("myfile.rdata")

Suppose you then quit R and come back to R, you could then load the data with the load() command.

load("myfile.rdata")

And you can see that you have loaded the data with the ls() command.

ls()

 [1] "ais"            "anesthetic"     "austpop"        "Cars93.summary" "dewpoint"      
 [6] "dolphins"       "ishade"      "last.warning"   "leafshape"      "milk"          
[16] "moths"          "oddbooks"       "orings"         "possum"         "primates"      
[21] "rainforest"     "seedrates"      "tinting"    

How to cite this page

Report an error on this page or leave a comment

The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California.