Skip to main content

Turn a segue Object into a Tidy Tibble

Source: R/segue.R

Description

This method tidies the original result, if it can.

Usage

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

Arguments

Arguments Description
x An object to be converted into a tidy tibble::tibble().
… Additional arguments to tidying method.

Value

A tibble.

Examples

if (rlang::is_installed("modeldata")) withAutoprint({ # examplesIf
cog_ability <- modeldata::ad_data$Class
test_res <- bin_prop_test(cog_ability)
tidy(test_res)
}) # examplesIf
> cog_ability <- modeldata::ad_data$Class
> test_res <- bin_prop_test(cog_ability)
> tidy(test_res)
# A tibble: 1 × 8
  estimate statistic  p.value parameter conf.low conf.high method    alternative
     <dbl>     <dbl>    <dbl>     <dbl>    <dbl>     <dbl> <chr>     <chr>      
1    0.273        91 5.86e-17       333    0.226     0.325 Exact bi… two.sided