dbWriteTable,MySQLConnection,character,data.frame-method | R Documentation |
Write a local data frame or file to the database.
## S4 method for signature 'MySQLConnection,character,data.frame'
dbWriteTable(
conn,
name,
value,
field.types = NULL,
row.names = TRUE,
overwrite = FALSE,
append = FALSE,
...,
allow.keywords = FALSE
)
## S4 method for signature 'MySQLConnection,character,character'
dbWriteTable(
conn,
name,
value,
field.types = NULL,
overwrite = FALSE,
append = FALSE,
header = TRUE,
row.names = FALSE,
nrows = 50,
sep = ",",
eol = "\n",
skip = 0,
quote = "\"",
...
)
conn |
a |
name |
a character string specifying a table name. |
value |
a data.frame (or coercible to data.frame) object or a
file name (character). In the first case, the data.frame is
written to a temporary file and then imported to SQLite; when |
field.types |
character vector of named SQL field types where
the names are the names of new table's columns. If missing, types inferred
with |
row.names |
A logical specifying whether the |
overwrite |
a logical specifying whether to overwrite an existing table
or not. Its default is |
append |
a logical specifying whether to append to an existing table
in the DBMS. Its default is |
... |
Unused, needs for compatibility with generic. |
allow.keywords |
logical indicating whether column names that happen to be MySQL keywords be used as column names in the resulting relation (table) being written. Defaults to FALSE, forcing mysqlWriteTable to modify column names to make them legal MySQL identifiers. |
header |
logical, does the input file have a header line? Default is the
same heuristic used by |
nrows |
number of lines to rows to import using |
sep |
field separator character |
eol |
End-of-line separator |
skip |
number of lines to skip before reading data in the input file. |
quote |
the quote character used in the input file (defaults to
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.