Learn R Programming

Rgretl (version 0.2.2)

find_sample: finding sample scripts which use a gretl command specified by name

Description

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

Usage

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.

Examples

Run this code
# NOT RUN {
find_sample("panel")
cat(paste0(gretl$penngrow,"\n"))
run_grcli(gretl$penngrow)

# }

Run the code above in your browser using DataLab