Learn R Programming

ffsimulator (version 1.2.3)

ffs_score_rosters: Join Rosters to Projected Scores

Description

Attaches projected scores to rosters (via an inner-join) and creates a positional ranking column.

Usage

ffs_score_rosters(projected_scores, rosters)

Value

A dataframe of roster-level projected scores

Arguments

projected_scores

a dataframe of projected scores, as created by ffs_generate_projections()

rosters

a dataframe of rosters, as created by ffs_rosters()

See Also

vignette("custom") for example usage

Examples

Run this code
# \donttest{
# cached examples
projected_scores <- .ffs_cache("projected_scores.rds")
rosters <- .ffs_cache("mfl_rosters.rds")

ffs_score_rosters(projected_scores, rosters)
# }

Run the code above in your browser using DataLab