eviews_wfcreate {EviewsR} R Documentation

## Create an EViews workfile.

### Description

Use this function in R, R Markdown and Quarto to create an EViews workfile.

### Usage

eviews_wfcreate(
source_description = "",
wf = "",
page = "",
prompt = FALSE,
frequency = "",
subperiod_opts = "",
start_date = "",
end_date = "",
num_cross_sections = NA,
num_observations = NA,
save_path = ""
)


### Arguments

 source_description Description of the file from which the data is to be imported. The specification of the description is usually just the path and file name of the file. 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 prompt Logical, whether to force the dialog to appear from within an EViews program frequency Object or a character string representing the frequency of a workfile page to be created. Only letters accepted by EViews are allowed. For example u for undated, a for annual, m for monthly and so on. subperiod_opts Optional integer value. Include subperiod_opts to define subperiod options for frequency argument. start_date Object or a character string representing the start date. It should be left blank for undated (when the frequency is u). end_date Object or a character string representing the end date. It should be left blank for undated (when the frequency is u). num_cross_sections Optional integer value. Include num_cross_sections in order to create an EViews balanced panel page using integer identifiers for each of the cross-sections. num_observations Numeric value. Specify the number of observations if the frequency="u". save_path Specify where to save the EViews workfile.

### Value

An EViews workfile

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

### Examples

library(EviewsR)
## Not run:
eviews_wfcreate(wf="eviews_wfcreate",page="EviewsR_page",frequency = "m",
start_date = "1990",end_date = "2022")

# Create a workfile from a dataframe

Data=data.frame(x=cumsum(rnorm(100)),y=cumsum(rnorm(100)))

eviews_wfcreate(source_description=Data,wf="eviews_wfcreate1",page="EviewsR_page",frequency="m",
start_date="1990")

## End(Not run)


[Package EviewsR version 0.1.5 Index]