Skip to contents

Get ESPN WNBA team stats data

Usage

espn_wnba_team_stats(team_id, year, season_type = "regular", total = FALSE)

Arguments

team_id

Team ID

year

Year

season_type

(character, default: regular): Season type - regular or postseason

total

(boolean, default: FALSE): Totals

Value

Returns a tibble with the team stats data

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_wnba_team_stats(team_id = 18, year = 2020))
#> ── ESPN WNBA Team Season Stats from ESPN.com ─────────────────── wehoop 1.5.0 ──
#>  Data updated: 2022-06-17 12:06:36 UTC
#> # A tibble: 1 × 114
#>   team_id team_guid          team_uid team_sdr team_slug team_location team_name
#>   <chr>   <chr>              <chr>    <chr>    <chr>     <chr>         <chr>    
#> 1 18      7c72e7ee5064b7662… s:40~l:… 15432    connecti… Connecticut   Sun      
#> # … with 107 more variables: team_abbreviation <chr>, team_display_name <chr>,
#> #   team_short_display_name <chr>, team_color <chr>,
#> #   team_alternate_color <chr>, team_is_active <lgl>, team_is_all_star <lgl>,
#> #   logo_href <chr>, logo_dark_href <chr>, general_disqualifications <dbl>,
#> #   general_flagrant_fouls <dbl>, general_fouls <dbl>, general_ejections <dbl>,
#> #   general_technical_fouls <dbl>, general_rebounds <dbl>,
#> #   general_avg_minutes <dbl>, general_nba_rating <dbl>, …
# }