cfb_player_usage: Player Information Search

Description Usage Arguments Value Source Examples

View source: R/cfb_player_usage.R

Description

A player usage function with Year as a required input.

Usage

1
2
3
4
5
6
7
8
cfb_player_usage(
  year = 2019,
  team = NULL,
  conference = NULL,
  position = NULL,
  athlete_id = NULL,
  excl_garbage_time = FALSE
)

Arguments

year

(Integer required, default 2019): Year, 4 digit format (YYYY).

team

(String optional): Team - Select a valid team, D1 football

conference

(String optional): Conference abbreviation - Select a valid FBS conference
Conference abbreviations P5: ACC, B12, B1G, SEC, PAC
Conference abbreviations G5 and FBS Independents: CUSA, MAC, MWC, Ind, SBC, AAC

position

(string optional): Position of the player you are searching for.
Position Group - options include:
* Offense: QB, RB, FB, TE, OL, G, OT, C, WR
* Defense: DB, CB, S, LB, DE, DT, NT, DL
* Special Teams: K, P, LS, PK

athlete_id

(Integer optional): Athlete ID filter for querying a single athlete Can be found using the cfbscrapR::cfb_player_info() function.

excl_garbage_time

(Logical default FALSE): Select whether to exclude Garbage Time (TRUE/FALSE)

Value

A data frame with 14 variables:

season

integer.

athlete_id

character.

name

character.

position

character.

team

character.

conference

character.

usg_overall

double.

usg_pass

double.

usg_rush

double.

usg_1st_down

double.

usg_2nd_down

double.

usg_3rd_down

double.

usg_standard_downs

double.

usg_passing_downs

double.

Source

https://api.collegefootballdata.com/player/usage

Examples

1
cfb_player_usage(year = 2019, position = 'WR', team = 'Florida State')

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