Learn R Programming

pointblank (version 0.5.1)

set_tbl: Set a data table to an agent

Description

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()).

Usage

set_tbl(agent, tbl)

Arguments

agent

An agent object of class ptblank_agent that is created with create_agent().

tbl

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.