powered by
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).
item
join_item_summary(tbl, item, ..., .prefix = "")join_game_summary(tbl, ..., .prefix = "")join_player_summary(tbl, ..., .prefix = "")
join_game_summary(tbl, ..., .prefix = "")
join_player_summary(tbl, ..., .prefix = "")
Data frame.
Character vector of columns to group by.
Name-value pairs of summary functions (as in dplyr::summarise).
A string to be added to all summary functions' names.
Result of left_join() to the input data frame.
left_join()
join_game_summary() and join_player_summary() are wrappers for join_item_summary() using item = "game" and item = "player" respectively.
join_game_summary()
join_player_summary()
join_item_summary()
item = "game"
item = "player"
Compute item summary
Common item summary functions for competition results.
# NOT RUN { ncaa2005 %>% join_player_summary(player_mean_score = mean(score)) # }
Run the code above in your browser using DataLab