inzdf: iNZight data frame object

View source: R/inzdf.R

inzdfR 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


iNZightTools documentation built on Oct. 12, 2023, 5:06 p.m.