R save stuff

For making suggestions and/or requests for new features you'd like added to EViews.

Moderators: EViews Gareth, EViews Moderator

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

R save stuff

Postby startz » Fri Jun 05, 2020 9:15 am

Three more things that might require some attention:

1. Alpha series do not get written to an RData file using SaveAs. This seems like a serious missing feature.
2. Using File/SaveAs does not lead to anything being put in the Capture pane.
3. The online help for wfsave does not include RData as a type, http://www.eviews.com/help/helpintro.ht ... 3ww2638923

EViews Steve
EViews Developer
Posts: 788
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: R save stuff

Postby EViews Steve » Mon Jun 08, 2020 7:45 am

Alpha series:
I believe our default is to save all numeric series objects in a workfile into either a data.frame or a ts structure. Can you have alpha columns in a data.frame or ts? If so, send me some example R code that assembles that and I'll see about supporting alpha series.

Capture pane:
SaveAs has been missing in command capture for a while. I'll look into fixing that though it won't be a quick fix.

WFSAVE documentation referring to RData:
I'll put in another documentation change request.

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: R save stuff

Postby startz » Mon Jun 08, 2020 7:59 am

Hi Steve,

Code: Select all

# exampleForSteve.R
# Dick Startz
# June 2020

df <- data.frame(randomNumbers = runif(10), randomLetters = letters[sample.int(10,n=26)])
df


Is that what you wanted?

EViews Steve
EViews Developer
Posts: 788
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: R save stuff

Postby EViews Steve » Mon Jun 08, 2020 8:48 am

Actually, I looked into the rdata save code and it seems like we're intentionally ignoring alpha series. I may be able to include those for rdata file formats, at least as a separate object. I'll let you know...

EViews Steve
EViews Developer
Posts: 788
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: R save stuff

Postby EViews Steve » Tue Jun 09, 2020 7:58 am

Ok, I made some changes that will make it to our next patch. WFSAVE for rdata files will now support alphas, matrixes, vectors, and scalars. They will all appear as separate items in R.

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: R save stuff

Postby startz » Tue Jun 09, 2020 8:00 am

Much appreciated.


Return to “Suggestions and Requests”

Who is online

Users browsing this forum: No registered users and 9 guests