About 7,800,000 results
Open links in new tab
  1. r - Summarizing multiple columns with dplyr? - Stack Overflow

    We can summarize by using summarize_at, summarize_all and summarize_if on dplyr 0.7.4. We can set the multiple columns and functions by using vars and funs argument as below code. …

  2. 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 …

  3. How to interpret dplyr message `summarise()` regrouping output …

    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 …

  4. 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 …

  5. 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 …

  6. Relative frequencies / proportions with dplyr - Stack Overflow

    11 For the sake of completeness of this popular question, since version 1.0.0 of dplyr, parameter .groups controls the grouping structure of the summarise function after group_by summarise …

  7. Get dplyr count of distinct in a readable way - Stack Overflow

    Use filter to filter out any rows where aa has NAs, then group the data by column bb and then summarise by counting the number of unique elements of column aa by group of bb. As you …

  8. r - summarizing counts of a factor with dplyr - Stack Overflow

    Sep 12, 2014 · I want to group a data frame by a column (owner) and output a new data frame that has counts of each type of a factor at each observation. The real data frame is fairly large, …

  9. 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 …

  10. r - How to sum a variable by group - Stack Overflow

    talat Over a year ago @lauren.marietta you can specify the function (s) you want to apply as summary inside the funs() argument of summarise_all and its related functions (summarise_at, …