Skip to content

Multi-stage output for packed data frames #398

Open

Description

@krlmlr

Current state

library(tibble)
tibble(a = tibble(b = 1, c = 2))
#> # A tibble: 1 × 1
#>     a$b    $c
#>   <dbl> <dbl>
#> 1     1     2

Created on 2021-12-25 by the reprex package (v2.0.1)

Desired?

library(tibble)
tibble(a = tibble(b = 1, c = 2))
#> # A tibble: 1 × 1
#>   a$      [2]
#>       b     c
#>   <dbl> <dbl>
#> 1     1     2

Created on 2021-12-25 by the reprex package (v2.0.1)

Things to consider

  • Show number of columns in the parent stage?
    • Search for sub_title <- c(title, ticked_names[[i]])
    • If too wide; also show ellipsis
    • Perhaps show column names in footer?
  • Distribute compound pillars over multiple tiers
    • Or can we agree that a packed data frame never spans multiple tiers?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions