export_mdb {mdbr} | R Documentation |
Export an Access database table as a text file
Description
Convert the data of a table into a delimited text string. Save the string as a character vector or write it to a text file. This direct conversion makes it easy to read tables into R or a spreadsheet.
Usage
export_mdb(
file,
table,
output = TRUE,
delim = ",",
quote = "\"",
quote_escape = "double",
col_names = TRUE,
eol = "\n",
date_format = "%Y-%m-%d %H:%M:%S"
)
Arguments
file |
Path to the Microsoft Access file. |
table |
Name of the table, list with |
output |
Path or connection to write to. Passed to the |
delim |
Delimiter used to separate values. |
quote |
Single character used to quote strings. Defaults to |
quote_escape |
The type of escaping to use for quoted values, one of
|
col_names |
If |
eol |
The end of line character to use. Most commonly either |
date_format |
The format in which date columns are converted. MDB Tools
uses the |
Value
Character string, invisible if path to file.
Examples
## Not run:
export_mdb(mdb_example(), "Airlines", output = TRUE)
## End(Not run)