mutate()
group_by()
summarise()
filter()
select()
Since dplyr 1.1.2, you can use the “.by” argument to use group_by()
within selected dplyr verbs
Also works with summarise(.by = )
, reframe(.by = )
, filter(.by = )
, slice(.by = )
pivot_wider()
(formerly: spread()
)pivot_longer()
(formerly: gather()
)left_join()
right_join()
inner_join()
full_join()
%>%()
|>()
Explore the chocolate dataset from tidytuesday, see here for documentation
group_by
and summarise
functions to explore mean ratings for different countries, beans, years…Do some data cleaning: the ingredients and characteristics column encode several observations. Separate out these columns, and make sure data is in long format :)