View source: R/team_win_record.R
team_win_record | R Documentation |
Asked in the homework as part of Question 3e. Counts the total number of games played by the team, calculates how many games the team won, and calculates a win percentage. Returns a sentance (character string) or a numeric vector based on the value of 'text'.
team_win_record(data, team, text = FALSE)
data |
A tibble, preferable the kenpom data |
team |
A string, the team to filter for |
text |
Boolean Output as text rather than a vector |
numeric vector or character string
team_win_record(get_cbb_data(), "Southern Utah") team_win_record(get_cbb_data(), "Southern Utah", 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.