[R] can't read datasets from MASS library

Thomas Lumley thomas at biostat.washington.edu
Mon Nov 8 17:47:18 CET 1999


On Mon, 8 Nov 1999, ros mathieu wrote:

> Hello R users,
> Sorry if this is a dumb question but I'm new to R under Windows (NT) and
> I can't access datasets from V&R's MASS library :
> 
> > library(MASS)
> > attach(UScrime)
> Error: Object "UScrime" not found
> > ls()
> character(0)
> 
> but I get all the functions...Have I missed something ?

You use the data() function to load datasets. 

	> library(MASS)
	> data(UScrime)
	> attach(UScrime)


Having explicit loading of data reduces the competition for both memory
and the namespace.

   -thomas

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle	

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list