item-summary-join: Join item summary

item-summary-joinR 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

Compute item summary

Common item summary functions for competition results.

Examples

ncaa2005 %>% join_player_summary(player_mean_score = mean(score))

comperes documentation built on March 7, 2023, 7:02 p.m.