EViews supports R data.frames, but perhaps your data.frame is in a format that EViews doesn't recognize?
To get a better understanding of how EViews supports data.frames, try the following simple example:
Code: Select all
wfcreate a 1991 2000
series x = @trend
series y = @nrnd
xopen(r)
xput(rtype=df, name=both) x y
delete x
delete y
xget both
You should end up with the same X & Y series back from R.
Take a close look at the "both" data.frame in R and inspect it's attributes. You'll see that it has "$row.names", "$names", and "$is.series" attributes that help EViews understand what each column is.
- 2023-07-14_07h55_56.png (5.08 KiB) Viewed 9336 times
Also, when you run the final XGET command above, you'll see that EViews is retrieving each column from the data.frame separately:
- 2023-07-14_07h54_39.png (3.1 KiB) Viewed 9336 times
So if you're having trouble getting your own data.frame in a single call, try retrieving each column one at a time by using the "data.frame$column" nomenclature, like this:
Steve