roster_score: Sum a roster score

Description Usage Arguments Value Examples

View source: R/best-roster.R

Description

For a given roster tibble, sum the starting scores.

Usage

1
roster_score(roster)

Arguments

roster

A roster tibble from team_roster() or best_roster().

Value

A score as double.

Examples

1
2
3
4
# asses performance compared to optimal
start <- team_roster(lid = 252353, week = 1)[[5]]
best <- best_roster(start)
roster_score(start)/roster_score(best)

fflr documentation built on Jan. 13, 2021, 5:18 p.m.