About 50 results
Open links in new tab
  1. How to interpret dplyr message `summarise()` regrouping output by 'x ...

    Jun 1, 2020 · I started getting a new message (see post title) when running group_by and summarise() after updating to dplyr development version 0.8.99.9003. Here is an example to recreate the output: …

  2. r - Summarise + case_when with n () - Stack Overflow

    Sep 9, 2023 · I wonder what I am doing wrong here. I am trying to use case_when () with summarise () to get a summary for each, depending on the number of rows for each id. library (dplyr, warn.conflicts …

  3. r - Understanding the purpose of .groups = "drop" in dplyr's …

    May 3, 2024 · I'm having trouble grasping the purpose of .group = "drop" in dplyr's summarise function. I'm attempting to execute the following code to display the top 20 stations along with their resp...

  4. Finding percentage in a sub-group using group_by and summarise

    Apr 10, 2015 · Finding percentage in a sub-group using group_by and summarise Ask Question Asked 10 years, 11 months ago Modified 2 years, 6 months ago

  5. r - Stop warnings with summarise - Stack Overflow

    Dec 14, 2021 · Stop warnings with summarise Ask Question Asked 4 years, 3 months ago Modified 3 years, 10 months ago

  6. r - dplyr - summary table for multiple variables - Stack Overflow

    Jan 4, 2016 · How to create simple summary statistics using dplyr from multiple variables? Using the summarise_each function seems to be the way to go, however, when applying multiple functions to …

  7. r - dplyr summarise_each with na.rm - Stack Overflow

    Sep 10, 2014 · Is there a way to instruct dplyr to use summarise_each with na.rm=TRUE? I would like to take the mean of variables with summarise_each("mean") but I don't know how to specify it to ignore …

  8. r - Count number of rows by group using dplyr - Stack Overflow

    I am using the mtcars dataset. I want to find the number of records for a particular combination of data. Something very similar to the count(*) group by clause in SQL. ddply() from plyr is working...

  9. r - dplyr - summarise with condition - Stack Overflow

    Apr 4, 2021 · Or another option is to convert to 'long' format with pivot_longer, do the filter/group_by/summarise and then reshape to 'wide' with pivot_wider

  10. r - dplyr summarise: Equivalent of ".drop=FALSE" to keep groups with ...

    When using summarise with plyr's ddply function, empty categories are dropped by default. You can change this behavior by adding .drop = FALSE. However, this doesn't work when using summarise …