Skip to content

mtoto/ufc.stats

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
 
 
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ufc.stats

This package contains UFC fight statistics, continously updated with data from latest events.

Installation

You can install the development version from GitHub with:

# devtools::install_github("mtoto/ufc.stats")
data("ufc_stats")

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.

Example usage

Who has the most significant strikes landed in UFC history?

library(dplyr)

ufc_stats %>% group_by(fighter) %>%
  summarise(total_significant_strikes = sum(significant_strikes_landed)) %>%
  arrange(-total_significant_strikes) %>%
  head()
#> # A tibble: 6 × 2
#>   fighter            total_significant_strikes
#>   <chr>                                  <int>
#> 1 Max Holloway                            2975
#> 2 Frankie Edgar                           1799
#> 3 Joanna Jedrzejczyk                      1754
#> 4 Donald Cerrone                          1748
#> 5 Rafael Dos Anjos                        1696
#> 6 Dustin Poirier                          1585

Updating with latest fights

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.

About

UFC Statistics conveniently packaged as a tidy dataframe.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages