getRanks: Get Summarized Rankings of Teams

Description Usage Arguments Value Examples

View source: R/getRanks.R

Description

Get Summarized Rankings of Teams

Usage

1
getRanks(sysName = "all", stage = 1, ...)

Arguments

sysName

The ranking system name(s) to filter the data by. Defaults to all, so all systems are used.

stage

Either 1 or 2, denotes the stage of the competition to use data from. Default is 1.

...

Unquoted function names to use to summarize the ranking statistics, such as mean, median, or standard deviation. Will use mean if nothing is specified.

Value

A dataframe containing summarized rankings for each team in each season.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#get mean rankings based on all systems in stage 1
## Not run: 
rankings <- getRanks()

## End(Not run)

#get mean and standard deviation of rankings based on the Massey (MAS) rankings and AP rankings
## Not run: 
rankings2 <- getRanks(sysName = c("MAS", "AP"), stage = 1, mean, sd)

## End(Not run)

npeters1322/bRacketbusteRs documentation built on Dec. 22, 2021, 3:14 a.m.