Learn R Programming

StatsBombR (version 0.1.0)

cleanlineups: This function unnests all lineups and returns a cleaned data frame.

Description

Pull lineups first using the alllineups function, then unnest them quickly with the cleanlineups function.

Usage

cleanlineups(lineups)

Arguments

lineups

A data frame of the lineups as accessed from the API and pulled using the alllineups function.

Value

df

Returns a data frame with all lineups unnested.

Examples

Run this code
# NOT RUN {
cleanlineups(lineups)
# }

Run the code above in your browser using DataLab