| 1 | # tbl_format_header() results |
| 2 | |
| 3 | Code |
| 4 | tbl_format_header(tbl_format_setup(as_tbl(mtcars), width = 80)) |
| 5 | Output |
| 6 | <tbl_format_header(setup)> |
| 7 | # A data frame: 32 x 11 |
| 8 | Code |
| 9 | tbl_format_header(tbl_format_setup(as_unknown_rows(trees), width = 30, n = 10)) |
| 10 | Output |
| 11 | <tbl_format_header(setup)> |
| 12 | # Unknown rows: ?? x 3 |
| 13 | Code |
| 14 | # Narrow |
| 15 | tbl_format_header(tbl_format_setup(as_tbl(mtcars), width = 10)) |
| 16 | Output |
| 17 | <tbl_format_header(setup)> |
| 18 | # A data |
| 19 | # frame: |
| 20 | # 32 x |
| 21 | # 11 |
| 22 | Code |
| 23 | # Custom tbl_sum() |
| 24 | tbl_format_header(tbl_format_setup(new_foo_tbl(), width = 30)) |
| 25 | Output |
| 26 | <tbl_format_header(setup)> |
| 27 | # A data frame: 0 x 0 |
| 28 | # foo: bar |
| 29 | Code |
| 30 | # Focus columns |
| 31 | tbl_format_header(tbl_format_setup(new_tbl(trees, pillar_focus = "Volume"), |
| 32 | width = 30)) |
| 33 | Output |
| 34 | <tbl_format_header(setup)> |
| 35 | # A data frame: 31 x 3 |
| 36 | # Focus columns: Volume |
| 37 |