import_series {EviewsR}R Documentation

Import EViews series objects(s) into R, R Markdown or Quarto.

Description

Use this function to import EViews series objects(s) into R, R Markdown or Quarto as dataframe or xts object.

Usage

import_series(wf = "", page = "*", series = "*", class = "df")

Arguments

wf

Object or a character string representing the name of a workfile to be created

page

Object or a character string representing the name of a workfile page to be created

series

Name(s) of EViews series object(s) in an EViews workfile

class

Class of the R object: df for dataframe, or xts for extendable time-series object.

Value

An EViews workfile

See Also

Other important functions: EviewsR, create_object(), eng_eviews(), eviews_graph(), eviews_import(), eviews_pagesave(), eviews_wfcreate(), eviews_wfsave(), exec_commands(), export_dataframe(), export(), import_equation(), import_graph(), import_kable(), import_table(), import_workfile(), import(), rwalk(), set_eviews_path()

Examples

library(EviewsR)
## Not run: 
demo(exec_commands)

# To import all series objects across all pages

import_series(wf="exec_commands")

# Plot the dataframe object

library(ggplot2)

ggplot(eviews$eviewspage,aes(x=date))+geom_line(aes(y=x,color="x"))+
geom_line(aes(y=y,color="y"))+labs(colour='',x="",y="")

# To import all series objects across all pages, as an `xts` object

import_series(wf="exec_commands",class="xts")

# Plot the `xts` object

autoplot(eviews$eviewspage,facet='')+xlab("")

# To import specific series objects, for example starting with Y

import_series(wf="exec_commands",series="y*")

# To import series objects on specific pages

import_series(wf="exec_commands",page="eviewspage")


# To access the series in base R

eviews$eviewspage %>% head()

# To get the values above in R Markdown or Quarto:

# chunkLabel$eviewspage


## End(Not run)

[Package EviewsR version 0.1.6 Index]