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

Ungrouping after rowwise grouping removes tbl class. #1328

Closed
felasa opened this issue Aug 18, 2015 · 2 comments
Closed

Ungrouping after rowwise grouping removes tbl class. #1328

felasa opened this issue Aug 18, 2015 · 2 comments

Comments

@felasa
Copy link

felasa commented Aug 18, 2015

May be intended but found it annoying:

If you ungroup a tbl after doing rowwise() grouping, it removes the tbl (and tbl_df) class from the object and reverts to a vanilla data.frame.

Examples

iris %>% tbl_df %>% rowwise %>% ungroup %>% class
[1] "data.frame"

iris %>% tbl_df %>% group_by(Species) %>% ungroup %>% class
[1] "tbl_df"     "tbl"        "data.frame"

iris %>% tbl_df %>% ungroup %>% class
[1] "tbl_df"     "tbl"        "data.frame"
sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=Spanish_Mexico.1252  LC_CTYPE=Spanish_Mexico.1252    LC_MONETARY=Spanish_Mexico.1252
[4] LC_NUMERIC=C                    LC_TIME=Spanish_Mexico.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] dplyr_0.4.2

loaded via a namespace (and not attached):
[1] magrittr_1.5   R6_2.1.0       assertthat_0.1 parallel_3.2.0 DBI_0.3.1      tools_3.2.0    Rcpp_0.12.0
@felasa
Copy link
Author

felasa commented Aug 19, 2015

Duplicate of #936 I guess.

@romainfrancois
Copy link
Member

Yep

@lock lock bot locked as resolved and limited conversation to collaborators Jun 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants