get_players_from_data_frame.Rd
Get Players from data.frame
get_players_from_data_frame(df)
A data.frame with columns for player related information. This can contain any/all of the player related info.
If a column coincides with a slot in objects of class player_object
, it will be included when the
data.frame is converted into unique player objects. The one exception is slot game_info
, which is
ignored in the conversion.
A list containing values of class player_objects
, one per player (i.e., row) in the data set.
The following columns are required, in order to avoid issues with the optimizer model:
first_name
last_name
team
position
salary
fpts
You'll get an error if these aren't included. If you want to know what else you can include, run list_player_attributes()