get_data: Access model output table data

View source: R/xpdb_access.R

get_dataR Documentation

Access model output table data

Description

Access model output table data from an xpdb object.

Usage

get_data(xpdb, table = NULL, .problem = NULL, quiet)

Arguments

xpdb

An xpose_data object from which the model output file data will be extracted.

table

Name of the output table to be extracted from the xpdb e.g. 'sdtab001'. Alternative to the '.problem' argument.

.problem

Accesses all tables from the specified problem. Alternative to the 'table' argument.

quiet

Logical, if FALSE messages are printed to the console.

Value

By default returns data from the last estimation problem. If only simulation problems are present then the data from last simulation will be returned instead. Object returned as tibble for single tables/problems or a named list for multiple tables/problems.

See Also

list_data, xpose_data, read_nm_tables

Examples

# By table name
sdtab <- get_data(xpdb_ex_pk, 'sdtab001')
sdtab

# By problem
tables <- get_data(xpdb_ex_pk, .problem = 1)
tables

# Tip to list available tables in the xpdb
print(xpdb_ex_pk)


xpose documentation built on May 29, 2024, 5:12 a.m.