Learn R Programming

gretlR (version 0.1.4)

write_inp: Write gretl inp file in R

Description

Use this function to write gretl inp file in R

Usage

write_inp(code,path)

Arguments

code

Object or a character string representing the set of gretl codes

path

Object or a character string representing the path to write the gretl inp file.

Value

Set of gretl (open-source software for Econometrics) outputs

See Also

Other important functions: eng_gretl(), exec_gretl(), exec_inp(), gretlR, import_kable(), include_graph(), include_tex()

Examples

Run this code
# NOT RUN {
library(gretlR)
# }
# NOT RUN {
code=r'(nulldata 500
set seed 13
gretl1 = normal()
gretl2 = normal()
setobs 12 1980:01 --time-series
gnuplot gretl1 --time-series --with-lines --output="line.png"
gnuplot gretl2 gretl1 --output="scatter.png"
)'
write_inp(code,path="gretlCodes")
# }

Run the code above in your browser using DataLab