Page 1 of 1

R save stuff

Posted: Fri Jun 05, 2020 9:15 am
by startz
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

Re: R save stuff

Posted: Mon Jun 08, 2020 7:45 am
by EViews Steve
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.

Re: R save stuff

Posted: Mon Jun 08, 2020 7:59 am
by startz
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?

Re: R save stuff

Posted: Mon Jun 08, 2020 8:48 am
by EViews Steve
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...

Re: R save stuff

Posted: Tue Jun 09, 2020 7:58 am
by EViews Steve
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.

Re: R save stuff

Posted: Tue Jun 09, 2020 8:00 am
by startz
Much appreciated.