A lot of data visualizations are designed to show multiple data points (think bar charts that compare results for multiple groups). But what if you want to show just one data point? Say, for example, you want to show what percentage of people have accomplished something? There are two techniques we often
In one of the lessons in Fundamentals of R, I teach people how to use the group_by() and summarize() functions to calculate simple summaries (e.g. if I have population data on all states, what is the total population of the United States?). But what if you want to group by a
Ever been using R and gotten this message? `summarise()` ungrouping output (override with `.groups` argument) What the heck does it mean? This is not an error. It’s just R’s way (the dplyr package specifically) of telling you what is happening with your data.