This package contains UFC fight statistics, continously updated with data from latest events.
You can install the development version from GitHub with:
Each row of ufc_stats
represents the statistics of one fighter in a single round of a fight. The data.frame
contains 37 variables in total. For full a description of each variable, please refer to the Data Dictionary.
Who has the most significant strikes landed in UFC history?
library(dplyr)
#> Warning: package 'dplyr' was built under R version 3.6.2
ufc_stats %>% group_by(fighter) %>%
summarise(total_significant_strikes = sum(significant_strikes_landed)) %>%
arrange(-total_significant_strikes) %>%
head()
#> # A tibble: 6 x 2
#> fighter total_significant_strikes
#> <chr> <int>
#> 1 Max Holloway 2618
#> 2 Joanna Jedrzejczyk 1711
#> 3 Donald Cerrone 1710
#> 4 Frankie Edgar 1705
#> 5 Michael Bisping 1567
#> 6 Rafael Dos Anjos 1493
The package contains a single function refresh_data()
that updates the dataset contained within the package. Running data("ufc_stats")
subsequently, the latest version of the data.frame is loaded into memory.