team_data: Scrape Team Season Stats

Description Usage Arguments Value

View source: R/team.R

Description

Scrape the seasonal statistics for a specific team.

Usage

1
team_data(team, league, defensive = FALSE)

Arguments

team

A string containing the full name of the team

league

A string containing the league to search. One of: 'NFL', 'NBA', 'NHL', 'MLB'

defensive

Whether to return defensive stats or offensive. Only applies for NBA and MLB teams

Value

A data frame containing seasonal data for the team.


kmacdon/sportscraper documentation built on March 22, 2020, 10:36 p.m.