GetPlayerFootedness: This function returns defines a player's footedness based on...

get.playerfootednessR Documentation

This function returns defines a player's footedness based on the percent of time they use each foot.

Description

For use with the StatsBomb Data API credentials. This function is used to access the JSON file from the StatsBomb API and format it as a data frame (tibble) for use in R. This function returns defines a player's footedness based on the percent of time they use each foot.

Usage

get.playerfootedness(Passes)

Arguments

Passes

Data frame with passes, pass body part name and player name and id.

Value

df

Data frame of the percent of time each player uses each foot, and their dominant foot defined by the greater percent.

Examples

get.playerfootedness(Passes)

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