Skip to contents

An opinionated function where for optimization routines that report number of significant digits (eg, FO-based), only those number of digits are considered reportable.

Usage

reportable_digits(xpdb, .default = 3, .problem, .subprob, .method)

Arguments

xpdb

<xpose_dataxpose::xpose_data> object

.default

<numeric> Default number of digits to return if not found

.problem

<numeric> Problem number to use. Uses all problem if not provided.

.subprob

<numeric> Subproblem number to use. Uses the xpose default if not provided.

.method

<character> Method to use. Uses the xpose default if not provided.

Value

Number of reportable digits

Examples


reportable_digits(xpdb_x)
#> [1] 3