components: List the tidy tables available from a simulation

View source: R/result.R

componentsR Documentation

List the tidy tables available from a simulation

Description

List the tidy tables available from a simulation

Usage

components(x)

Arguments

x

A simulab_sim object.

Value

A base data.frame with one row per available table and the columns table (the name to pass as what to as.data.frame()), rows and columns. The first row is always the primary "data" table; a result that carries no extra tables returns that single row.

Examples

result <- simulate_ttest(
  n_a = 10,
  n_b = 10,
  mean_a = 0,
  mean_b = 0.5,
  seed = 1
)
components(result)

simulab documentation built on Oct. 15, 2026, 5:08 p.m.