dbImport | R Documentation |
Create SQL tables from data.table
, data.frame
, or flat files.
dbImport(
conn,
table,
name = NULL,
pattern = "\\.(rds|csv|gz)$",
index = NULL,
overwrite = FALSE,
verbose = TRUE,
na.strings = "",
...
)
conn |
a |
table |
|
name |
table name. Used only when |
pattern |
an optional regular expression. Only file names into the |
index |
character vector of column names to use as index. |
overwrite |
if |
verbose |
if |
na.strings |
a character vector of strings which are to be interpreted as |
... |
additional arguments passed to |
NULL
## Not run:
library(RSQLite)
conn <- dbConnect(RSQLite::SQLite(), "crsp.db")
path <- "path/to/crsp/sazYYYYMM_r"
dbInit(conn, path)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.