Skip to content

How to show non user defined data set such as cu.summary (from rpart)?

3 messages · John Edwards, Ista Zahn, Uwe Ligges

#
Hi John,
Not sure how to do it with ls(), but easy enough with data():

data(package=library(base))

You'll need to consult both ?data and ?library to see why this works.
labrary(base) could just as easily be library(stats) or whatever.

Best,
Ista
On Sat, Mar 5, 2011 at 4:36 PM, John Edwards <jhnedwards603 at gmail.com> wrote:

  
    
#
Yes, after you have loaded rpart using library("rpart"), you will find 
the search() list similar to this one:

R>  search()
  [1] ".GlobalEnv"        "package:rpart"     "package:psych" 
"package:stats"
  [5] "package:graphics"  "package:grDevices" "package:datasets" 
"package:utils"
  [9] "package:fortunes"  "package:methods"   "Autoloads" 
"package:base"


In order to list the contents of the environment of the rpart package,
use
   ls(pos=2)
now.

Uwe Ligges
On 05.03.2011 17:36, John Edwards wrote: