item-summary-join | R Documentation |
Functions for joining summary data to data frame. They perform respective
variant of summarise item functions and then left join to the input its result (by item
columns).
join_item_summary(tbl, item, ..., .prefix = "") join_game_summary(tbl, ..., .prefix = "") join_player_summary(tbl, ..., .prefix = "")
tbl |
Data frame. |
item |
Character vector of columns to group by. |
... |
Name-value pairs of summary functions (as in dplyr::summarise). |
.prefix |
A string to be added to all summary functions' names. |
join_game_summary()
and join_player_summary()
are wrappers for
join_item_summary()
using item = "game"
and item = "player"
respectively.
Result of left_join()
to the input data frame.
Compute item summary
Common item summary functions for competition results.
ncaa2005 %>% join_player_summary(player_mean_score = mean(score))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.