Compact view of list values

view_list(x)

Arguments

x

a vector or list to be transposed

Value

Returns a data frame to display a list or vector vertically.

See also

Examples

compare_values(10, 8) |>
  view_list()
#>                        value
#> x                         10
#> y                          8
#> delta                      2
#> delta_p                   25
#> article_delta            a 2
#> article_delta_p         a 25
#> raw_delta                  2
#> raw_delta_p               25
#> article_raw_delta        a 2
#> article_raw_delta_p     a 25
#> sign                       1
#> orig_values         10 vs. 8
#> trend               increase

add_article(c(1,8,10, 11, 18)) |>
  view_list()
#>   value
#> 1   a 1
#> 2  an 8
#> 3  a 10
#> 4 an 11
#> 5 an 18