getpositioncategory: This function returns the players' id and 1 of 6 position...

Description Usage Arguments Value Examples

Description

For use with the all StatsBomb data. After StatsBomb data is read in from the JSON file, this function will return a dataframe of all of the player ids and their position category.

Usage

1

Arguments

events

Dataframe of event object gathered from the StatsBomb API, need the position.name and the player ids for all events.

Value

df

Returns a data frame with all of the player ids and position categories.

Examples

1
2
events <- StatsBombFreeEvents()
positions <- get.positioncategory(events)

nandomartinez/Soccer documentation built on Nov. 4, 2019, 8:34 p.m.