summary_funs: Common item summary functions

summary_funsR Documentation

Common item summary functions

Description

List of commonly used functions for summarising competition results.

Usage

summary_funs

Format

An object of class list of length 8.

Details

summary_funs is a named list of expressions representing commonly used expressions of summary functions for summarising competition results with summarise_item(). Names of the elements will be used as summary names. It is designed primarily to be used with long format of competition results. To use them inside summarise_item() use unquoting mechanism from rlang package.

Currently present functions:

  • min_score - min(score).

  • max_score - max(score).

  • mean_score - mean(score).

  • median_score - median(score).

  • sd_score - sd(score).

  • sum_score - sum(score).

  • num_games - length(unique(game)).

  • num_players - length(unique(player)).

Note that it is generally better to subset summary_funs using names rather than indices because the order of elements might change in future versions.

See Also

Compute item summary, Join item summary

Examples

ncaa2005 %>% summarise_game(!!!summary_funs, .prefix = "game_")

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