Skip to content
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 · 2 comments
Closed

glimpse() should print tbl_sum() output #550

krlmlr opened this issue Dec 17, 2018 · 2 comments
Milestone

Comments

@krlmlr
Copy link
Member

@krlmlr krlmlr commented Dec 17, 2018

tidyverse/dplyr#3384 (comment)

CC @romainfrancois.

@krlmlr krlmlr added this to the 2.0.0 milestone Dec 17, 2018
@krlmlr krlmlr closed this in bbffd64 Dec 20, 2018
@earowang
Copy link
Contributor

@earowang 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
rm the tbl_sum() dim from `glimpse()` #550
@github-actions
Copy link

@github-actions github-actions bot commented Dec 9, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants