Description Usage Arguments Value Note References See Also Examples
View source: R/fc_read_matches.R
This function reads and processes the Wyscout matches
data.
1 | fc_read_matches(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. Not all variables are returned from the
original JSON data file. Specifically, referee data is not included
in the tidy tibble object, and only some data from nested section
teamsData
is included in the tidy tibble object.
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_players()
,
fc_read_teams()
1 2 3 4 | file_path <- system.file("extdata", "matches_england.json", package = "scoutr")
matches <- fc_read_matches(file_path)
matches_list <- fc_read_matches(file_path, tidy_tibble = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.