Skip to contents

Obtain the valid columns to use in dplyr::select for a user-defined scoring format.

Usage

get_scoring_format(scoring = NULL, position = NULL)

Arguments

scoring

Fantasy scoring format (str). Can be defined as standard scoring, half PPR scoring, full PPR scoring, 4PT PASS TD or 6PT PASS TD by using: "std_4pt_td", "half_ppr_4pt_td", "ppr_4pt_td", "std_6pt_td", "half_ppr_6pt_td", "ppr_6pt_td"

position

Player position (str) to determine if extra format statement is necessary (only in the case of QB for PASS TD points).

Value

String with fantasy scoring format to use in table subtitle

Details

Depending on the user-defined argument when creating gt tables for fantasy stats, the scoring format columns can be included while neglecting all other calculated fantasy scoring formats.

See also

calc_fpts_common_formats Calculate fantasy points based on common scoring formats

calc_fpts_ppg_common_formats Calculate fantasy points per game (PPG) based on common scoring formats

table_ovr_qb_fantasy Create table with overall fantasy standings for QB

Author

Nolan MacDonald