item-summary-join {comperes} | R Documentation |
Join item summary
Description
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).
Usage
join_item_summary(tbl, item, ..., .prefix = "")
join_game_summary(tbl, ..., .prefix = "")
join_player_summary(tbl, ..., .prefix = "")
Arguments
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. |
Details
join_game_summary()
and join_player_summary()
are wrappers for
join_item_summary()
using item = "game"
and item = "player"
respectively.
Value
Result of left_join()
to the input data frame.
See Also
Common item summary functions for competition results.
Examples
ncaa2005 %>% join_player_summary(player_mean_score = mean(score))
[Package comperes version 0.2.7 Index]