If you save a workfile in R you get a nice dataframe with one object for each series. The series are appropriately dated. Can someone tell me how I retrieve those dates in R? The documentation doesn't seem to say.
I think my R package, EviewsR, can help.
To import all pages of a workfile into R as a dataframe:
Code: Select all
library(EviewsR)
import_series(wf="myWorkfile")
To import all series objects from specific page(s), for example myPage, of a workfile into R as a dataframe:
Code: Select all
library(EviewsR)
import_series(wf="myWorkfile",page="myPage")
To import specific page(s), for example myPage, and specific series object(s), for example y, from a workfile into R as a dataframe:
Code: Select all
library(EviewsR)
import_series(wf="myWorkfile",page="myPage",series="y")
If you want the imported series objects to be an xts object, use class="xts" in the impor_series function argument
To access the imported dataframe or xts object, related to myPage, in base R:
Note that `myPage` changes to `mypage` because EviewsR is designed to convert all imported EViews objects to lower case in R.
Note that `eviews` is an environment created by EviewsR package to save all imported EViews objects in base R. In R Markdown or Quarto, the package uses the chunk label as the new environment, instead of `eviews`.