player.Rd
Constructor Function for Player class
player(
id,
first_name,
last_name,
team,
position,
depth = 1L,
salary,
fpts,
locked = FALSE,
blocked = FALSE,
is_injured = FALSE,
min_exposure = NA_real_,
max_exposure = NA_real_,
variance = NA_real_,
game_info
)
player ID
first name
last name
team (Required)
position (Required)
Position on depth chart or roster order (like batting order) (Default 1)
salary
fantasy points
Whether the player should be locked to all lineups (Default FALSE)
Whether to omit player from all lineups (Default FALSE)
injury flag (Default FALSE)
Minimum exposure across lineups
Maximum exposure across lineups
Amount of variance to apply to fpts during optimization (percentage)
information about the game (Default is an empty game_info object)
Function that initializes a Player object.