About 52 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. The left-hand …

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

  3. summarize () deprecated in R. What to use instead?

    Feb 6, 2024 · Returning more (or less) than 1 row per summarise() group was deprecated in dplyr 1.1.0. ℹ Please use reframe() instead. ℹ When switching from summarise() to reframe(), remember that …

  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 their resp...

  5. r - Stop warnings with summarise - Stack Overflow

    Dec 14, 2021 · Stop warnings with summarise Asked 4 years, 1 month ago Modified 3 years, 7 months ago Viewed 7k times

  6. How do I summarise all columns except one (s) I specify?

    Nov 28, 2018 · How do I summarise all columns except one (s) I specify? Asked 7 years, 1 month ago Modified 2 years, 11 months ago Viewed 24k times

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

  8. Aggregate / summarize multiple variables per group (e.g. sum, mean)

    By default, summarise() drops the last level of grouping, so all the examples above would still be grouped by year. To drop all grouping, you can add an ungroup() call, or set .groups = "drop" in the …

  9. 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, and there are …

  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, summarise_if) …