Setting a data table to an agent or an informant with set_tbl()
replaces any associated table (a data frame, a tibble, objects of class tbl_dbi or tbl_spark).
set_tbl(x, tbl, tbl_name =NULL, label =NULL)
Arguments
x: A pointblank agent or informant object
obj:<ptblank_agent|ptblank_informant> // required
An agent object of class ptblank_agent, or, an informant of class ptblank_informant.
tbl: Table or expression for reading in one
obj:<tbl_*>|<tbl reading expression> // required
The input table for the agent or the informant. This can be a data frame, a tibble, a tbl_dbi object, or a tbl_spark object. Alternatively, an expression can be supplied to serve as instructions on how to retrieve the target table at interrogation- or incorporation-time. There are two ways to specify an association to a target table: (1) as a table-prep formula, which is a right-hand side (RHS) formula expression (e.g., ~ { <tbl reading code>}), or (2) as a function (e.g., function() { <tbl reading code>}).
tbl_name: A table name
scalar<character> // default:NULL (optional)
A optional name to assign to the new input table object. If no value is provided, a name will be generated based on whatever information is available.
label: An optional label for reporting
scalar<character> // default:NULL (optional)
An optional label for the validation plan or information report. If no value is provided then any existing label will be retained.
Examples
Set proportional failure thresholds to the warn, stop, and notify