Skip to contents

Tidy a creel_estimates object into a flat tibble

Usage

# S3 method for class 'creel_estimates'
tidy(x, ...)

Arguments

x

A creel_estimates object.

...

Unused; reserved for future arguments.

Value

A tibble with one row per estimate. All columns from x$estimates are returned, plus n padded to NA_integer_ when the estimator does not produce a sample size (e.g. mark-recapture harvest). Guaranteed columns: estimate, se, ci_lower, ci_upper, n.

Lossy for uncertainty components. Named components – the x$se_components list, and the se_expansion slot it mirrors – stay on the object and are deliberately not returned as columns. The contract distinguishes a component that does not apply or was never propagated (an absent name) from one that applies but is unknown (NA), and a tibble column collapses both to NA – reintroducing exactly the ambiguity the absent name was chosen to prevent. Read them from the object (x$se_components) or from print(), which also states each component's relationship to se.

Note also that se_between and se_within, where present, do not reconstruct se on designs carrying a party-size expansion: the expansion term is a third contribution and is not among the visible columns.