| mdb_json | R Documentation |
mdb-json is a utility program distributed with MDB Tools.
It produces JSON output for the given table. Such output is suitable for
parsing in a variety of languages.
mdb_json(
path,
table,
date_format = "%Y-%m-%d",
time_format = "%Y-%m-%d %H:%M:%S",
no_unprintable = FALSE,
n = -1L
)
path |
Path to |
table |
Table name. |
date_format |
Equivalent to |
time_format |
Equivalent to |
no_unprintable |
Equivalent to |
n |
Optional row limit. |
JSON string.
db <- mdbr:::.mdb_example_nwind_path()
if (nzchar(db) && requireNamespace("jsonlite", quietly = TRUE)) {
mdb_json(db, "Products", n = 2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.