New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glimpse() should print tbl_sum() output #550

Closed
krlmlr opened this Issue Dec 17, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@krlmlr
Copy link
Member

krlmlr commented Dec 17, 2018

@krlmlr krlmlr added this to the 2.0.0 milestone Dec 17, 2018

@krlmlr krlmlr closed this in bbffd64 Dec 20, 2018

@earowang

This comment has been minimized.

Copy link
Contributor

earowang commented Dec 21, 2018

Other data objects than tibble seem not to be taken into consideration, which results less ideal outputs:

brief_summary <- summary[names(summary) != "A tibble"]

Using tsibble as an example:

v1.4.2 ==>

library(tsibble, warn.conflicts = FALSE)
glimpse(pedestrian)
#> 2015-01-01 00:00:00 ~ 2016-12-31 23:00:00
#> Observations: 66,037
#> Variables: 5
#> $ Sensor    <chr> "Birrarung Marr", "Birrarung Marr", "Birrarung Marr"...
#> $ Date_Time <dttm> 2015-01-01 00:00:00, 2015-01-01 01:00:00, 2015-01-0...
#> $ Date      <date> 2015-01-01, 2015-01-01, 2015-01-01, 2015-01-01, 201...
#> $ Time      <int> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15...
#> $ Count     <int> 1630, 826, 567, 264, 139, 77, 44, 56, 113, 166, 250,...

dev ==>

library(tsibble, warn.conflicts = FALSE)
glimpse(pedestrian)
#> 2015-01-01 00:00:00 ~ 2016-12-31 23:00:00
#> Observations: 66,037
#> Variables: 5
#> A tsibble: 66,037 x 5 [1h] <Australia/Melbourne>
#> Key: Sensor [4]
#> $ Sensor    <chr> "Birrarung Marr", "Birrarung Marr", "Birrarung Marr", …
#> $ Date_Time <dttm> 2015-01-01 00:00:00, 2015-01-01 01:00:00, 2015-01-01 …
#> $ Date      <date> 2015-01-01, 2015-01-01, 2015-01-01, 2015-01-01, 2015-…
#> $ Time      <int> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, …
#> $ Count     <int> 1630, 826, 567, 264, 139, 77, 44, 56, 113, 166, 250, 4…

Created on 2018-12-21 by the reprex package (v0.2.1)

romainfrancois added a commit to tidyverse/dplyr that referenced this issue Dec 21, 2018

krlmlr added a commit that referenced this issue Dec 21, 2018

Merge pull request #554 from earowang/glimpse
rm the tbl_sum() dim from `glimpse()` #550
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment