ncaa_scrape function

(legacy) Scrape NCAA baseball Team Player Stats (Division I, II, andIII)

(legacy) Scrape NCAA baseball Team Player Stats (Division I, II, andIII)

ncaa_scrape( team_id, year = most_recent_ncaa_baseball_season(), type = "batting", ... )

Arguments

  • team_id: The numerical ID that the NCAA website uses to identify a team
  • year: The season for which data should be returned, in the form of "YYYY". Years currently available: 2013-2017.
  • type: A string indicating whether to return "batting" or "pitching" statistics
  • ...: Additional arguments passed to an underlying function like httr.

Returns

A data frame with the following variables

col_nametypes
yearinteger
team_namecharacter
team_idnumeric
conference_idinteger
conferencecharacter
divisionnumeric
player_idinteger
player_urlcharacter
player_namecharacter
Yrcharacter
Poscharacter
Jerseycharacter
GPnumeric
GSnumeric
BAnumeric
OBPctnumeric
SlgPctnumeric
Rnumeric
ABnumeric
Hnumeric
2Bnumeric
3Bnumeric
TBnumeric
HRnumeric
RBInumeric
BBnumeric
HBPnumeric
SFnumeric
SHnumeric
Knumeric
DPnumeric
CSnumeric
Pickednumeric
SBnumeric
RBI2outnumeric
  • Maintainer: Saiem Gilani
  • License: MIT + file LICENSE
  • Last published: 2024-01-16

Downloads (last 30 days):