Learn R Programming

comperes (version 0.2.0)

item-summary-join: 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.

Value

Result of left_join() to the input data frame.

Details

join_game_summary() and join_player_summary() are wrappers for join_item_summary() using item = "game" and item = "player" respectively.

See Also

Compute item summary

Common item summary functions for competition results.

Examples

Run this code
# NOT RUN {
ncaa2005 %>% join_player_summary(player_mean_score = mean(score))

# }

Run the code above in your browser using DataLab