find_sample: finding sample scripts which use a _gretl_ command specified...

Description Usage Arguments Value Author(s) Examples

Description

Findis sample scripts which use a gretl command specified by name. Sample scripts which are present in Rgretl as data are searched.

Usage

1
2
3
find_sample(cmd, dir = NULL)
# find_sample("panel")
# find_sample("wls","ramanathan")

Arguments

cmd

gretl command as character string, execute run_grcli("help") for the list of valid gretl commands.

dir

gretl character string, can be "gretl", "greene", or "ramanathan"; specifies a name of scripts collection to search; if missing, all three are searched.

Value

character vector): contains the name(s) of found sample scripts as components of corresponding data sets.

Author(s)

Oleh Komashko

Examples

1
2
3
find_sample("panel")
cat(paste0(gretl$penngrow,"\n"))
run_grcli(gretl$penngrow)

Rgretl documentation built on May 2, 2019, 3:46 p.m.