Learn R Programming

geeLite (version 1.0.2)

fetch_vars: Fetch Variable Information from an SQLite Database

Description

Displays information on the available variables in the SQLite database (data/geelite.db).

Usage

fetch_vars(
  path,
  format = c("data.frame", "markdown", "latex", "html", "pipe", "simple", "rst")
)

Value

Returns the variable information in the selected format. If

format = "data.frame", a data.frame is returned. For other formats, the output is printed in the specified format and NULL is

Arguments

path

[mandatory] (character) Path to the root directory of the generated database.

format

[mandatory] (character) A character string. Possible values are "data.frame" (default) to return a data.frame object, or one of "markdown", "latex", "html", "pipe" (Pandoc's pipe tables), "simple" (Pandoc's simple tables), and "rst" to be passed on to knitr for formatting.

Examples

Run this code
# Example: Printing the available variables
if (FALSE) {
  fetch_vars(path = "path/to/db")
}

Run the code above in your browser using DataLab