| mdb_export | R Documentation |
mdb-export is a utility program distributed with MDB Tools.
It produces CSV output for the given table. Such output is suitable for
importation into databases or spreadsheets.
mdb_export(
path,
table,
no_header = FALSE,
delimiter = ",",
row_delimiter = "\n",
no_quote = FALSE,
quote = "\"",
escape = NULL,
escape_invisible = FALSE,
date_format = "%Y-%m-%d",
datetime_format = "%Y-%m-%d %H:%M:%S",
null = "",
bin = c("strip", "raw", "octal", "hex"),
boolean_words = FALSE,
insert = NULL,
namespace = NULL,
batch_size = 1L,
n = -1L
)
path |
Path to |
table |
Table name. |
no_header |
Logical, equivalent to |
delimiter |
Equivalent to |
row_delimiter |
Equivalent to |
no_quote |
Equivalent to |
quote |
Equivalent to |
escape |
Equivalent to |
escape_invisible |
Equivalent to |
date_format |
Equivalent to |
datetime_format |
Equivalent to |
null |
Equivalent to |
bin |
Binary mode ( |
boolean_words |
Equivalent to |
insert |
Backend for |
namespace |
Equivalent to |
batch_size |
Equivalent to |
n |
Optional row limit ( |
Used with insert, it outputs backend-specific SQL INSERT statements.
Most formatting options also apply in insert mode.
Character scalar containing CSV or SQL INSERT text.
db <- mdbr:::.mdb_example_nwind_path()
if (nzchar(db)) {
cat(mdb_export(db, "Products", n = 2))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.