Saving data in R
Moderators: EViews Gareth, EViews Moderator
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Saving data in R
It would be nice if there were an option when saving to R to have the saved series be accompanied by a date (POSIX) series rather than having row names attached and each series being a dataframe. All the series could then go into one dataframe.
-
- EViews Developer
- Posts: 799
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
Re: Saving data in R
I think our original idea was to save it this way, but after we added the ability to save matrices and other objects which wouldn't fit into a single dataframe, we had to do it the current way where each object is saved one item at a time.
Here's a quick workaround EViews program that can save a workfile page series objects the way you want it (including a separate @date column in the dataframe):
then if you open this rdata file in R, you'd see something like this:
Here's a quick workaround EViews program that can save a workfile page series objects the way you want it (including a separate @date column in the dataframe):
Code: Select all
xopen(r)
%list = @wlookup("*", "series")
xput(rtype=df, name=test) {%list} @date
xrun save.image("c:/files/out.rdata")
xclose
then if you open this rdata file in R, you'd see something like this:
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Saving data in R
That's very helpful. Thanks.
But you could still have two different R save functions...
But you could still have two different R save functions...
Return to “Suggestions and Requests”
Who is online
Users browsing this forum: No registered users and 11 guests