How to sum a variable by group in R

preview_player
Показать описание
This is a quick tutorial on how to sum a variable by group in R using the dplyr package group_by function. We also show how to count how many are in the group as well as the average of the group. Isn't R the best programming language of all time?

I agree.

Like the video and subscribe for the best R content around.
Рекомендации по теме
Комментарии
Автор

You literary saved my 3 pass days, and my life. THANK YOU

meidangreenberg
Автор

Awesome! Hours and hours trying to do this and you made it quite easy. Thank you!

claudiolobenwein
Автор

Awesome! This was exactly what I was trying to figure out how to do. Thank you!

analyst
Автор

Thank you so much, I would ask you how
2:43 can I make same with conductionnot equal 0

امعبدالله-تثت
Автор

hey, how do you plot a graph of sum_enroll ? Could anyone please help with that?

ankitha
Автор

Thank you very much for this. This was perfect and very helpful!!!

RenatoVargas
Автор

Thank you for the video! It was
exactly what I was looking for. However, my summary is only showing the first 10 rows of my data 27 more rows). Is there a function to display all the rows? Any help would be much appreciated.

Baisuzhen
Автор

Why tbl_df instead of as_tibble? Was tbl_df the norm back in 2017? Also, I'm not sure if it's an issue with the data set or me, but the average enrollment seems very low. I plugged in medians and still got low numbers (1338 for no, 328 for yes).

StockSpotlightPodcast
Автор

How about when you need to count cases, because sum doesn't work for words
"invalid 'type' (character) of argument"

AtliTobiasson
Автор

Hey! Can you help me!? I don't know why group_by is not working. I don't know if I am doing something wrong

marianahigueras
Автор

Hi I'm looking for an R tutor to help me out with my course, does anyone know anyone or can help

mive.f