You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As noted on StackOverflow, as of dplyr v1.0.0 (I think), when running group_by() %>% summarize(), a message is now outputted (see reprex below):
`summarise()` ungrouping output (override with `.groups` argument)
This message is not addressed in the v1 print edition of the book. To keep moderndive.com consistent with the print edition, for now we set options(dplyr.summarise.inform = FALSE) in index.Rmd
For v2:
Remove this option()
Explicitly address this in the text for Ch3 Data Wrangling.
reprex:
library(dplyr)
#> #> Attaching package: 'dplyr'#> The following objects are masked from 'package:stats':#> #> filter, lag#> The following objects are masked from 'package:base':#> #> intersect, setdiff, setequal, union
library(nycflights13)
weather %>%
group_by(month) %>%
summarize(mean= mean(temp, na.rm=TRUE))
#> `summarise()` ungrouping output (override with `.groups` argument)#> # A tibble: 12 x 2#> month mean#> <int> <dbl>#> 1 1 35.6#> 2 2 34.3#> 3 3 39.9#> 4 4 51.7#> 5 5 61.8#> 6 6 72.2#> 7 7 80.1#> 8 8 74.5#> 9 9 67.4#> 10 10 60.1#> 11 11 45.0#> 12 12 38.4
As noted on StackOverflow, as of
dplyr
v1.0.0 (I think), when runninggroup_by() %>% summarize()
, a message is now outputted (see reprex below):This message is not addressed in the v1 print edition of the book. To keep moderndive.com consistent with the print edition, for now we set
options(dplyr.summarise.inform = FALSE)
inindex.Rmd
For v2:
option()
reprex:
Created on 2020-06-08 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: