简体   繁体   English

将 Eviews 工作文件导入 R

[英]Import Eviews workfile into R

I have problem importing an Eviews workfile into R. I use the hexView package and I can get the time series data into R but I do not get the periods responding to the time series imported.我在将 Eviews 工作文件导入 R 时遇到问题。我使用 hexView 包,我可以将时间序列数据导入 R,但我没有得到响应导入时间序列的周期。 (The periods is not stored as a timeseries object.) (周期不存储为时间序列对象。)

I would not like to create an time series objects for the periods in the workfile to solve the problem.我不想为工作文件中的时间段创建时间序列对象来解决问题。

If there is another way than using the hexView package to import the data and the responding periods it would be great.如果除了使用 hexView 包来导入数据和响应周期之外还有其他方法,那就太好了。

Right now I use this simple code to read the data into R现在我使用这个简单的代码将数据读入 R

d <- readEViews("testData.wf1", as.data.frame = TRUE)

工作文件图片

Any and all help will be greatly appreciated.任何和所有的帮助将不胜感激。

This question motivated me to create an R package EviewsR , which is available on CRAN.这个问题促使我创建了一个 R 包EviewsR ,它在 CRAN 上可用。

Please follow the following steps in R:请按照 R 中的以下步骤操作:

install.packages("EviewsR")
library(EviewsR)
import("importedDataframe","testData")
eviews$importedDataframe # to access the imported dataframe in R

The package works with base R, R Markdown and Quarto.该软件包适用于基础 R、R Markdown 和 Quarto。

I am currently updating the package to provide new features我目前正在更新软件包以提供新功能

I look forward to your feedback.我期待您的反馈。

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

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