JoinPlayerNickName: This function returns joins player nick names from the...

View source: R/JoinPlayerNickName.R

JoinPlayerNickNameR Documentation

This function returns joins player nick names from the lineups API into the event data.

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.

Usage

JoinPlayerNickName(username = "username", password = "password", events)

Arguments

username

Character string of your StatsBomb API username.

password

Character string of your StatsBomb API password.

events

Data frame of the event data that you want to join nick names too. The match_ids must be present in the events data.

Value

df

Returns a data frame with all events and nicknames joined.

Examples

events <- JoinPlayerNickName(username = username, password = password, events)

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