ncaa_scrape: Scrape NCAA baseball data (Division I, II, and III)

Description Usage Arguments Examples

Description

This function allows the user to obtain batting or pitching statistics for any school affiliated with the NCAA at the division I, II, or III levels. The function acquires data from the NCAA's website (stats.ncaa.org) and returns a data frame.

Usage

1
ncaa_scrape(teamid, year, type)

Arguments

teamid

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

Examples

1
2
3
4
## Not run: 
ncaa_scrape(255, 2013, "batting")

## End(Not run)

Fackz/baseball documentation built on June 25, 2019, 12:05 a.m.