Learn R Programming

StatsBombR (version 0.1.0)

competitions: This function returns all competitions that StatsBomb has data for.

Description

This function easily scrapes the competitions available from the StatsBomb API.

Usage

competitions(username, password)

Arguments

username

Character string of your StatsBomb API username.

password

Character string of your StatsBomb API password.

version

Character string of the version of the StatsBomb API you wish to access. Currently version v1 and v2 are supported.

Value

df

Returns a data frame with all competitions available.

Examples

Run this code
# NOT RUN {
competitions(username, password)
# }

Run the code above in your browser using DataLab