Description Usage Arguments Details Value Note Author(s) See Also
Functions to import binary files into one or multiple SQL tables.
binblocks2SQLite reads a series of binary files into a single table.
importBin2Sqlite is an extension to binB2SQLite in order to
read a series of binary files into multiple SQLite tables.
1 2 3 4 | binblocks2SQLite(conn, path, tablename, columnID, pattern, what = "double",
append = FALSE, verbose = TRUE, ...)
importBin2Sqlite(conn, path, tablename, sampleTable, what = "double", categoryTable = NULL,
prefix = "", verbose = 1, ...)
|
conn |
Either a |
path |
A |
tablename |
A |
columnID |
A |
pattern |
A |
what |
A |
append |
A logical value. If |
verbose |
A logical value or non-negative integer to control whether or not to print out extra information. |
sampleTable |
A |
categoryTable |
A |
prefix |
A character string specifying optional prefix on table names. |
... |
Additional optional arguments. |
binB2SQLite reads a series of binary files with names
sharing pattern pattern into a single SQLite table name
on database conn.
importBin2Sqlite requires a data frame,
(sampleTable) that contains table topology,
i.e. what table contains what columns, and what table contains what kind of binary files.
The sampleTable will be imported to SQL database conn in additon to all binary files.
If an optional data frame category is specified, it will also be imported into
SQLite. In that case, users can use SQL JOIN to get category related data.
Both functions return a logical indicating whether the importing was successful or not.
Users must make sure that all binary files share the same dimensionality.
Y Alex Chen <ychen@insightful.com>
readBin, readBinMatrix, writeBinBlocks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.