简体   繁体   English

如何在 R 中导出 eviews 工作文件?

[英]How do I export eviews workfile in R?

我需要使用在 eviews 中制作的矩阵,有什么方法可以在R 、eviews 工作文件或数据库中加载或导出并在R 中使用它

A quick google for import eviews into r lead me to the hexView package , this supports reading binary EViews files. import eviews into r快速谷歌import eviews into r我带到hexView,它支持读取二进制 EViews 文件。 Alternatively, you could dump the file into an ASCII format, say csv, and read that into R using read.table .或者,您可以将文件转储为 ASCII 格式,例如 csv,然后使用read.table读入 R。

EViews has the ability to open up an R session and send data over to R (and execute R commands/scripts too). EViews 能够打开 R 会话并将数据发送到 R(也可以执行 R 命令/脚本)。

Setting EViews up to work with R can be a little tricky, but if you just install the RAndFriends package, it can be done easily enough.将 EViews 设置为与 R 一起工作可能有点棘手,但如果您只安装 RAndFriends 包,就可以轻松完成。

Once setup, you simply need a few EViews commands such as:设置完成后,您只需要一些 EViews 命令,例如:

xopen(r)
xput myobject

You can then run R commands on that object from within EViews, or issue an R command to save the object as a native R object, then open up R and access it.然后,您可以从 EViews 中对该对象运行 R 命令,或发出 R 命令将该对象另存为本机 R 对象,然后打开 R 并访问它。

Of course, all of that assumes that you have EViews installed.当然,所有这些都假设您安装了 EViews。 Without EViews installed, you're probably out of luck.如果没有安装 EViews,你可能就不走运了。 Their data format is notoriously difficult to get at.他们的数据格式是出了名的难以掌握。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM