For the complete documentation index, see llms.txt. This page is also available as Markdown.

Workflow$table

Workflow$table(table_reference) → Table

Create a reference to a table within a workflow. This can be any table produced by the workflow, or a table from one of the workflow's datasources.

Parameters:

table_reference : str The scoped reference of the table, e.g. table_name or table_name:referenceId. Tables from the workflow's datasources can be referenced by their name in the same way. See referencing tables within a workflow for how a name is resolved when more than one table matches.

Returns:

Tables referenced through a workflow are read through the workflow, using the version (and sample, if applicable) selected for their datasource. Methods that modify a table, such as Table$update() and Table$update_variables(), first fetch the table to determine its fully qualified reference, and then modify the table in the dataset or workflow that it belongs to.

Examples

workflow <- redivis$user("imathews")$workflow("example_workflow_climate_analysis")

table <- workflow$table('compute_annual_precipitation_output:m7k8')
table$to_tibble()
# 	id	        year	    annual_precip
# 0	CA0023026HN	2003	    2925.0
# ...

# A table from a dataset that has been added to the workflow
observations <- workflow$table("daily_observations")
observations$to_tibble(max_results=100)

Was this helpful?