MLBscrapeR: MLB web scraping R package

Description Usage Arguments Examples

Description

These functions scrape baseball team and player statsitics. getPlayers scrapes a list of players on a given baseball team. getStats scrapes an individual player's statistics on a given baseball.

Usage

1
2
getPlayers(team)
getStats(player, team, table)

Arguments

team

the team to be scraped

player

the player to be scraped

table

Statistics to be scraped. This must be one of 'fielding', 'batting','pitching'

Examples

1
2
3
4
getPlayers(team = "Baltimore Orioles")
getStats(player = "Dylan Bundy", team = "Baltimore Orioles", table = "fielding")
getStats(player = "Dylan Bundy", team = "Baltimore Orioles", table = "batting")
getStats(player = "Dylan Bundy", team = "Baltimore Orioles", table = "pitching")

lizeyuyuz/MLBscrapeR documentation built on May 30, 2019, 6:58 p.m.