View source: R/eviews_import.R
| eviews_import | R Documentation | 
EViews workfileUse this function  in R, R Markdown and Quarto to import data to EViews workfile.
eviews_import(
  source_description = "",
  wf = "",
  type = "",
  options = "resize",
  smpl_string = "@all",
  genr_string = "",
  rename_string = "",
  frequency = "",
  start_date = "",
  id = "",
  destid = "",
  append = FALSE,
  save_path = ""
)
| 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 an  | 
| type | Optional. Specify the file type, it can values allowed by  | 
| options | Optional.Specify the  | 
| smpl_string | Optional. Specify the sample to be used for the data import. | 
| genr_string | Optional. Any valid  | 
| rename_string | Optional. Pairs of old object names followed by the new name to be used to rename some of the imported series. | 
| 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  | 
| start_date | Object or a character string representing the  | 
| id | Name of  | 
| destid | Name of the destination ID.  Required for  | 
| append | Logical, whether to append to the bottom of the  | 
| save_path | Specify the path to save the  | 
An EViews workfile
Other important functions: 
EviewsR-package,
create_object(),
eng_eviews(),
eviews_graph(),
eviews_pagesave(),
eviews_wfcreate(),
eviews_wfsave(),
exec_commands(),
export(),
export_dataframe(),
import(),
import_equation(),
import_graph(),
import_kable(),
import_series(),
import_table(),
import_workfile(),
rwalk(),
set_eviews_path()
library(EviewsR)
## Not run: 
Data=data.frame(x=cumsum(rnorm(100)),y=cumsum(rnorm(100)))
write.csv(Data,"eviews_import.csv",row.names = FALSE)
eviews_import(source_description = "eviews_import.csv",start_date = "1990",frequency = "m",
rename_string = "x ab",smpl_string = "1990m10 1992m10")
# Alternatively, use the dataframe as the source_description
eviews_import(source_description = Data,wf="eviews_import1",start_date = "1990",
frequency = "m",rename_string = "x ab",smpl_string = "1990m10 1992m10")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.