Learn R Programming

TidyDensity (version 1.5.0)

bootstrap_unnest_tbl: Unnest Tidy Bootstrap Tibble

Description

Unnest the data output from tidy_bootstrap().

Usage

bootstrap_unnest_tbl(.data)

Value

A tibble

Arguments

.data

The data that is passed from the tidy_bootstrap() function.

Author

Steven P. Sanderson II, MPH

Details

This function takes as input the output of the tidy_bootstrap() function and returns a two column tibble. The columns are sim_number and y

It looks for an attribute that comes from using tidy_bootstrap() so it will not work unless the data comes from that function.

See Also

Other Bootstrap: bootstrap_density_augment(), bootstrap_p_augment(), bootstrap_p_vec(), bootstrap_q_augment(), bootstrap_q_vec(), bootstrap_stat_plot(), tidy_bootstrap()

Examples

Run this code
tb <- tidy_bootstrap(.x = mtcars$mpg)
bootstrap_unnest_tbl(tb)

bootstrap_unnest_tbl(tb) |>
  tidy_distribution_summary_tbl(sim_number)

Run the code above in your browser using DataLab