perGameStats: Get Per-Game Statistics

Description Usage Arguments Value Examples

View source: R/perGameStats.R

Description

Get Per-Game Statistics

Usage

1
perGameStats(stage = 1, ...)

Arguments

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 per-game statistics, such as mean, median, or standard deviation. Will use mean if nothing is specified.

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#will use stage 1 data and calculate the mean for each of the statistics
## Not run: 
avgStatsPerGame <- perGameStats()

## End(Not run)

#will use stage 2 data and calculate the mean, median, and standard deviation of each statistic
## Not run: 
perGameStats(stage = 2, mean, median, sd)

## End(Not run)

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