Description Usage Arguments Value Note References See Also Examples
View source: R/fc_read_teams.R
This function reads and processes the Wyscout teams
data.
1 | fc_read_teams(file, tidy_tibble = TRUE)
|
file |
File path to |
tidy_tibble |
Logical value indicating if the returned object should be
a tidy tibble or not. If |
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.
The variable names in the returned tidy tibble are in snake case, but they are analogous to those used by Wyscout.
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
Other read functions:
fc_read_coaches()
,
fc_read_competitions()
,
fc_read_events()
,
fc_read_matches()
,
fc_read_players()
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.