fc_read_teams: Read Wyscout soccer teams data

Description Usage Arguments Value Note References See Also Examples

View source: R/fc_read_teams.R

Description

This function reads and processes the Wyscout teams data.

Usage

1
fc_read_teams(file, tidy_tibble = TRUE)

Arguments

file

File path to teams JSON data.

tidy_tibble

Logical value indicating if the returned object should be a tidy tibble or not. If FALSE, a list is returned.

Value

A tidy tibble or list depending on the value of argument tidy_tibble. A detailed description of the variables is given at the reference cited below.

Note

The variable names in the returned tidy tibble are in snake case, but they are analogous to those used by Wyscout.

References

Pappalardo, L., Cintia, P., Rossi, A. et al. A public data set of spatio-temporal match events in soccer competitions. Sci Data 6, 236 (2019). https://doi.org/10.1038/s41597-019-0247-7

All public Wyscout data is available at https://figshare.com/collections/Soccer_match_event_dataset/4415000/2

See Also

Other read functions: fc_read_coaches(), fc_read_competitions(), fc_read_events(), fc_read_matches(), fc_read_players()

Examples

1
2
3
4
file_path <- system.file("extdata", "teams.json", package = "scoutr")

teams <- fc_read_teams(file_path)
teams_list <- fc_read_teams(file_path, tidy_tibble = FALSE)

shawnsanto/scoutr documentation built on Feb. 27, 2021, 1:02 p.m.