Skip to contents

Get the Basketball-Reference player index for a starting letter, with bios, from Basketball-Reference.

Returns every player whose last name begins with letter, with career span, position, listed height/weight, birth date, college(s) and the player's Basketball-Reference id slug (the key used by bref_player_game_log() and the other player-level bref_*() functions). This doubles as a Basketball-Reference player dictionary. No API key is required. Basketball-Reference rate-limits aggressive scraping (~20 requests/minute) – space repeated calls with Sys.sleep().

Usage

bref_player_bios(letter = "a")

Arguments

letter

(character required): Single letter a-z (last-name initial). Defaults to "a".

Value

A hoopR_data tibble with one row per player. Its columns are listed in return_columns (subset(return_columns, fn == "bref_player_bios")) and in the searchable return columns article.

Examples

if (FALSE) { # interactive() && !nzchar(Sys.getenv("CI"))
# \donttest{
  try(bref_player_bios(letter = "a"))
# }
}