powered by
Source is an object storing information about data source such as source type, primary keys and relations between stored data.
set_source( dtconn, ..., primary_keys = NULL, binding_keys = NULL, source_code = NULL, description = NULL )# S3 method for tblist set_source( dtconn, primary_keys = NULL, binding_keys = NULL, source_code = NULL, description = NULL, ... )
# S3 method for tblist set_source( dtconn, primary_keys = NULL, binding_keys = NULL, source_code = NULL, description = NULL, ... )
R6 object of class inherited from `dtconn`.
An object defining source data connection.
Source type specific parameters. Available in `attributes` list of resulting object.
Definition of primary keys describing source data (if valid). When provided, affects the output of attrition data plot. See primary_keys.
Definition of binding keys describing relations in source data (if valid). When provided, affects post filtering data. See binding-keys.
Expression presenting low-level code for creating source. When provided, used as a part of reproducible code output.
A named list storing the source objects description. Can be accessed with description Cohort method.
mtcars_source <- set_source( tblist(mtcars = mtcars), source_code = quote({ source <- list(dtconn = list(datasets = mtcars)) }) ) mtcars_source$attributes
Run the code above in your browser using DataLab