tennis_data: Download tennis data

View source: R/functions.R

tennis_dataR Documentation

Download tennis data

Description

Imports ATP or WTA data from the website http://www.tennis-data.co.uk/.

Usage

tennis_data(YEAR, Circuit)

Arguments

YEAR

Year to consider, in "YYYY" format.

Circuit

Tennis circuit. Valid choices are "ATP" and "WTA".

Details

The structure of the datasets provided by http://www.tennis-data.co.uk/ may vary across years. Therefore, before combining data from multiple seasons, users should verify that the variables are consistent across datasets and, if necessary, retain only the common columns.

Value

A data frame containing the data for the selected year and circuit.

Examples

## Not run: 
db <- tennis_data("2022", "ATP")
head(db)

## End(Not run)


welo documentation built on July 21, 2026, 5:06 p.m.

Related to tennis_data in welo...