team_all_matches: This function returns match-by-match metrics from the IQ API...

team_all_matchesR Documentation

This function returns match-by-match metrics from the IQ API for all teams in a given league-season. Different to team_season, which pulls per 90 aggregated metrics.

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_all_matches(username, password, matches)

Arguments

username

Character object of your StatsBomb API username.

password

Character object of your StatsBomb API password.

matches

Character vector of the matches you wish to access.

Value

df

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

Examples

matchids <- matchesvector(username, password, 90, 2)
pl_2024_25_team_match <- team_all_matches(username, password, matchids)

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