0

I am working on R Win7 x64.

I have installed and opened a data mining tool rattle. http://rattle.togaware.com/

After loading the library in R studio, I can access the data set contained in the library.

 library(rattle)

 Data sets in package ‘rattle’:

 audit                     Sample dataset for illustration Rattle
                           functionality.
 locationsAUS              Sample and full dataset for illustrating Rattle
                            functionality.
 weather                   Sample and full dataset for illustrating Rattle
                            functionality.
 weatherAUS                Sample and full dataset for illustrating Rattle
                            functionality.
 wine                      The wine dataset from the UCI Machien Learning
                             Repository.

 rattle()  // open a GUI

But, in the GUI I cannot see the weather.csv file which can be accessed in R studio.

Why ?

How to find the absolute file path of weather.csv in R studio ?

I need to copy it to the dir that can be accessed by rattle GUI.

Any help would be appreciated.

Has QUIT--Anony-Mousse
  • 76,138
  • 12
  • 138
  • 194
user2420472
  • 1,127
  • 1
  • 12
  • 20

1 Answers1

2

You can see all the files in the rattle package using

dir(system.file(package = "rattle"), recursive = TRUE)

The path to the one you want is retrieved with

system.file("csv", "weather.csv", package = "rattle")

This works whether you use RStudio or any other IDE for R.

Richie Cotton
  • 118,240
  • 47
  • 247
  • 360