inzdf {iNZightTools} | R Documentation |
iNZight data frame object
Description
This object allows the data to be either a standard R data.frame
or
a connection to a database.
Usage
inzdf(x, name, ...)
## S3 method for class 'tbl_df'
inzdf(x, name, ...)
## S3 method for class 'data.frame'
inzdf(x, name, ...)
## S3 method for class 'SQLiteConnection'
inzdf(
x,
name = deparse(substitute(x)),
schema = NULL,
var_attrs = list(),
dictionary = NULL,
keep_con = FALSE,
...
)
Arguments
x |
a data.frame or db connection |
name |
the name of the data |
... |
additional arguments passed to methods |
schema |
a list specifying the schema of the database (used for linking) |
var_attrs |
nested list of variables attributes for each table > variable |
dictionary |
an inzdict object |
keep_con |
if 'TRUE' data will remain in DB (use for very large data) |
Details
TODO: It is possible to specify a linking structure between multiple datasets, and when variables are selected the dataset will be linked 'on-the-fly'. This, when used with databases, will significantly reduce the size of data in memory.
Value
an inzdf
object
[Package iNZightTools version 2.0.1 Index]