What does "[?]" represent in a grouped data frame?

44 views
Skip to first unread message

Bob

unread,
Apr 11, 2017, 8:52:41 AM4/11/17
to manipulatr
Hi All,
Below is one of the demos from dplyr's Introduction vignette (https://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html). What is the meaning of the question mark?
Thanks,
Bob
daily <- group_by(flights, year, month, day)
(per_day   <- summarise(daily, flights = n()))
#> Source: local data frame [365 x 4]
#> Groups: year, month [?]  <=============What does this mean?
#> 
#> # A tibble: 365 x 4
#>    year month   day flights
#>   <int> <int> <int>   <int>
#> 1  2013     1     1     842
#> 2  2013     1     2     943
#> 3  2013     1     3     914
#> 4  2013     1     4     915
#> ... with 361 more rows

Hadley Wickham

unread,
Apr 11, 2017, 10:13:49 AM4/11/17
to Bob, manipulatr
It basically means that dplyr doesn't know (currently) how many groups
there are.
Hadley
> --
> You received this message because you are subscribed to the Google Groups
> "manipulatr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to manipulatr+...@googlegroups.com.
> To post to this group, send email to manip...@googlegroups.com.
> Visit this group at https://groups.google.com/group/manipulatr.
> For more options, visit https://groups.google.com/d/optout.



--
http://hadley.nz
Reply all
Reply to author
Forward
0 new messages