Description Usage Arguments Details Value Examples
Customize your fantasy baseball league and generate dollar values.
1 |
... |
arguments will be saved to league options |
After specifying the league configuration, players will be loaded and dollar values will be generated. If data is not specified, the source argument will be used to load default datasets included with this package. If components of data are missing, the default datasets will be used (by default, extra is NULL). The following items are useful league options.
battingvector of character strings, batting categories; defaults to c('xAVG','R','RBI','HR','SB')
pitchingvector of character strings, pitching categories; defaults to c('W','S','xERA','xWHIP','K')
hitreqvector of numeric values, position requirements for hitters; defaults to c(C=1, '1B'=1, '2B'=1, '3B'=1, SS=1, LF=0, CF=0, RF=0, CI=1, MI=1, IF=0, OF=5, Util=1)
pitreqvector of numeric values, position requirements for pitchers; defaults to c(SP=6, RP=3, P=0).
posquallist of numeric values, position eligibility requirements; defaults to c(mg=20, ms=5, mr=5). mg is minimum games for a hitter to qualify at a position ms is minimum games for a pitcher to qualify as a starter mr is minimum games for a pitcher to qualify as a reliever
numberOfTeamsnumeric value, number of teams in the league; defaults to 12
adjustPlayingTimelogical value, should playing time adjustments be made; defaults to TRUE.
presetcharacter string, description of league; defaults to 'Standard Roto'. Options include 'Standard Roto', 'ESPN', 'Yahoo!', 'Custom'. This value is unused at this time.
leaguecharacter string, league subset of eligible players; defaults to 'MLB'. Options include 'MLB', 'AL', 'NL'.
minimumBidnumeric value, minimum bid per player; defaults to 1.
moneyPerTeamnumeric value, cap space for each team; defaults to 260.
nplayersinteger value, the number of players to include; defaults to number of players per team times the number of teams. This value is unused at this time.
hittersSplitnumeric value, the percentage of dollars that should be spent on hitters; defaults to 70. The difference between this number and 100 will set the pitchersSplit, thus it defaults to 30.
datalist, contains custom datasets; batting and pitching lists should be given, each with main, pt, and extra components. main should contain basic hitting/pitching stats and games played. pt should contain playing time projections. extra should contain extra hitting/pitching stats.
sourcecharacter string, set the default dataset; defaults to 'steamer14'
league object
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.