Learn R Programming

fflr (version 2.3.0)

roster_score: Sum of starting scores in a roster

Description

For a given roster tibble, sum the starting scores.

Usage

roster_score(roster, useScore = c("actualScore", "projectedScore"))

Value

A starting score as double.

Arguments

roster

A roster data frame from team_roster().

useScore

One of "projectedScore" or "actualScore" (default).

See Also

Other roster functions: best_roster(), start_roster(), team_roster()

Examples

Run this code
rost <- team_roster(leagueId = "42654852", leagueHistory = TRUE)[[1]][[1]]
roster_score(rost)

Run the code above in your browser using DataLab