roster: Access the roster for a team, season, and position
Description
roster() scrapes the roster for a given set of team, season, and
position.
Usage
roster(team = 1, season = "current", position = "forwards")
Value
data.frame with one row per player
Arguments
team
integer ID (e.g., 21), character full name (e.g., 'Colorado
Avalanche'), OR three-letter code (e.g., 'COL'); see teams() for
reference; ID is preferable as there now exists duplicate three-letter codes
(i.e., 'UTA' for 'Utah Hockey Club' and 'Utah Mammoth')
season
integer in YYYYYYYY (e.g., 20242025); see seasons() for
reference
position
character of 'f'/'forwards', 'd'/'defensemen', or
'g'/'goalies'