Reputation: 55
I am trying to open and see the data in an R file (.rda
) but it gives me error:
library("ETAS")
vars <- load("jap.quakes.rda")
vars
This is the error msg:
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
In addition: Warning message:
In readChar(con, 5L, useBytes = TRUE) :
cannot open compressed file 'jap.rda', probable reason 'No such file or directory'
Upvotes: 1
Views: 17068
Reputation: 7908
It seems that you want to load the data jap.quakes
from the ETAS package. What your code now does is to load the jap.quakes.rda
, which probably is not there (you can check with dir()
).
Since you want to load data from a package just do:
data(jap.quakes)
This is also stated in the documentation of the package.
Now the object jap.quakes
is available in your global environment. Type jap.quakes
to show the object.
Upvotes: 4