Hi R users, Simply question: On the command line, how do I list the datasets contained within a package, e.g. MASS? I scanned the mailing list history but was unable to find the answer. Thanks in advance. Gregory --------------------------------- [[alternative HTML version deleted]]
data(package="MASS") On 14/01/2008, Gregory Gentlemen <gregory_gentlemen at yahoo.ca> wrote:> Hi R users, > > Simply question: On the command line, how do I list the datasets contained within a package, e.g. MASS? > > I scanned the mailing list history but was unable to find the answer. > > Thanks in advance. > Gregory > > > > > > --------------------------------- > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Henrique Dallazuanna Curitiba-Paran?-Brasil 25? 25' 40" S 49? 16' 22" O
?data -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org (801) 408-8111> -----Original Message----- > From: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] On Behalf Of Gregory Gentlemen > Sent: Monday, January 14, 2008 1:18 PM > To: r-help at r-project.org > Subject: [R] Listing the data contents of a package > > Hi R users, > > Simply question: On the command line, how do I list the > datasets contained within a package, e.g. MASS? > > I scanned the mailing list history but was unable to find the answer. > > Thanks in advance. > Gregory > > > > > > --------------------------------- > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Dear Gregory, data(package="MASS") will do what you want. Regards, John On Mon, 14 Jan 2008 15:17:54 -0500 (EST) Gregory Gentlemen <gregory_gentlemen at yahoo.ca> wrote:> Hi R users, > > Simply question: On the command line, how do I list the datasets > contained within a package, e.g. MASS? > > I scanned the mailing list history but was unable to find the answer. > > Thanks in advance. > Gregory > >