get_porp: Computing points over replacement

Description Usage Arguments Value Examples

Description

Computing points over replacement

Usage

1
get_porp(df, teams = 3L, sds = 3, plotTitle = NULL)

Arguments

df

A tidy data frame or tibble containing a column "player" for the player names, a column "position" with the positions for each player, and a column "spots" with the number of roster spots available for each position. The rest of the columns should be the point projections with one column for each different projection source.

teams

The number of teams in the draft.

sds

The number of standard deviations away from the mean to estimate the floors and ceilings for each player.

plotTitle

A character string providing the main title of the output plot.

Value

A list with two elements: df and chart. df is a data frame with the computed points over replacement values, and chart is a ggplot object which produces the error bar chart.

Examples

1
2
3
foo <- get_porp(bball, plotTitle = "Example Data")
head(foo$df)
foo$chart

benmwhite/draftr documentation built on May 20, 2019, 4:26 p.m.