Setting a data table to agent with set_tbl()
replaces any table (a data
frame, a tibble, objects of class tbl_dbi
or tbl_spark
) associated with
the agent. If no data table is associated with an agent, setting one will
mean the data table takes precedence over table-reading function (settable in
create_agent()
's read_fn
argument or with set_read_fn()
).
set_tbl(agent, tbl)
An agent object of class ptblank_agent
that is created with
create_agent()
.
The input table for the agent
. This can be a data frame, a
tibble, a tbl_dbi
object, or a tbl_spark
object. Any table already
associated with the agent will be overwritten.