team_match: This function returns metrics from the IQ API for all teams...

team_matchR Documentation

This function returns metrics from the IQ API for all teams in a given match.

Description

For use with the StatsBomb Data API credentials. This function is used to access the JSON file from the StatsBomb IQ API and format it as a data frame (tibble) for use in R. Currently, parallel is only supported for windows.

Usage

team_match(username, password, match_id)

Arguments

username

Character object of your StatsBomb API username.

password

Character object of your StatsBomb API password.

match_id

The ID of the match you wish to pull data for. Can be either a vector or just insert the number directly.

Value

df

Returns a data frame with all the team metrics for the match specified.

Examples

team_match_data <- team_match(username, password, 7298)

statsbomb/StatsBombR documentation built on Dec. 3, 2024, 11:53 p.m.