View source: R/get-players-from-df.R
get_players_from_data_frame | R Documentation |
Get Players from data.frame
get_players_from_data_frame(df)
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 |
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()
A list containing values of class player_objects
, one per player (i.e., row) in the data set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.