read_tournament_entry: Scrape tournament stats report

Description Usage Arguments Value Examples

Description

Scrape tournament stats report

Usage

1
2
3
4
5
6
7
8
read_tournament_entry(
  year = "Unknown year",
  set = "Unknown set",
  site = "Unknown site",
  url,
  powers = "T",
  difficulty = c("easy", "medium", "regionals", "nationals")
)

Arguments

year

The competition year the tournament took place. Preferred format is 'XX-XX' (e.g. '20-21' or '16-17').

set

The set the tournament used. If set has multiple iterations, there is no need to distinguish them (i.e. 'Penn Bowl' should be used instead of '2009 Penn Bowl').

site

The site of the tournament. Should be selected to distinguish between multiple mirrors of the same set, even if they had the nominal same site (e.g. two online mirrors, or a school hosting a high school and a college mirror).

url

A link to a tournament stats report in either SQBS or YellowFruit format. Should be in string format.

powers

Whether or not the tournament has powers ('T' or 'F')

difficulty

The difficulty of the tournament (one of "easy", "medium", "regionals", or "nationals").

Value

Returns a named list of two data frames, one containing player stats (conveniently named "player_stats") and the other team stats ("team_stats").

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
read_tournament_entry(
url = 'https://hsquizbowl.org/db/tournaments/7030/stats/combined/games/',
year = '20-21',
set = 'ACF Nationals',
site = 'Northwestern',
difficulty = 'nationals',
powers = 'F'
)

read_tournament_entry(
url = 'https://hsquizbowl.org/db/tournaments/7112/stats/combined/games/',
difficulty = 'medium'
)

ryanrosenberg/hsqbdb documentation built on Feb. 8, 2022, 11:29 a.m.