cfb_recruiting_player: CFB Recruiting Gets CFB recruiting information for a single...

Description Usage Arguments Details Value Source Examples

View source: R/cfb_recruiting_player.R

Description

At least one of year or team must be specified for the function to run

Usage

1
2
3
4
5
6
7
cfb_recruiting_player(
  year = NULL,
  team = NULL,
  recruit_type = "HighSchool",
  state = NULL,
  position = NULL
)

Arguments

year

(Integer optional): Year, 4 digit format (YYYY) - Minimum: 2000, Maximum: 2020 currently

team

(String optional): D-I Team

recruit_type

(String optional): default API return is 'HighSchool', other options include 'JUCO' or 'PrepSchool' - For position group information

state

(String optional): Two letter State abbreviation

position

(String optional): Position Group - options include:
* Offense: 'PRO', 'DUAL', 'RB', 'FB', 'TE', 'OT', 'OG', 'OC', 'WR'
* Defense: 'CB', 'S', 'OLB', 'ILB', 'WDE', 'SDE', 'DT'
* Special Teams: 'K', 'P'

Details

If you would like CFB recruiting information for teams, please see the cfbscrapR::cfb_recruiting_team() function

If you would like to get cfb recruiting information based on position groups during a time period for all FBS teams, please see the cfbscrapR::cfb_recruiting_position() function.

Value

A data frame with 14 variables:

recruit_type

character.

year

integer.

ranking

integer.

name

character.

school

character.

committed_to

character.

position

character.

height

double.

weight

integer.

stars

integer.

rating

double.

city

character.

state_province

character.

country

character.

Source

https://api.collegefootballdata.com/recruiting/players

Examples

1
2
3
4
5
cfb_recruiting_player(2018, team = "Texas")

cfb_recruiting_player(2016, recruit_type = 'JUCO')

cfb_recruiting_player(2020, recruit_type = 'HighSchool', position = 'OT', state = 'FL')

meysubb/cfbscrapR documentation built on Dec. 15, 2020, 11:26 p.m.