Description Usage Arguments Value Source Examples
View source: R/cfb_player_info.R
A player search function with 'search_term' as a required input. If left NULL, API default will only provide results for most recent year of final rosters: 2019 Would not recommend using the position group filter,it feels arbitrary and pernicious, but it is there. May fortune favor you should you choose to use it.
1 | cfb_player_info(search_term, position = NULL, team = NULL, year = NULL)
|
search_term |
(String required): Search term for the player you are trying to look up |
position |
(string optional): Position of the player you are searching for. |
team |
(String optional): Team - Select a valid team, D1 football |
year |
(Integer optional): Year, 4 digit format (YYYY).
If left NULL, API default will only provide results for most recent year of final rosters: 2020 |
A data frame with 12 variables:
athlete_id
character. Unique player identifier - 'athlete_id'.
team
character. Team of the player.
name
character. Player name.
first_name
character. Player first name.
last_name
character. Player last name.
weight
integer. Player weight.
height
integer. Player height.
jersey
integer. Player jersey number.
position
character. Player position.
home_town
character. Player home town.
team_color
character. Player team color.
team_color_secondary
character. Player team secondary color.
https://api.collegefootballdata.com/player/search
1 2 3 4 5 | cfb_player_info(search_term = 'James', position = 'DB', team = 'Florida State', year = 2017)
cfb_player_info(search_term = 'Lawrence', team = "Clemson")
cfb_player_info(search_term = 'Duggan')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.