knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) options(crayon.enabled = FALSE) options(crayon.colors = 1) crayon::num_colors(forget = TRUE) devtools::install_github("mtoto/ufc.stats")
This package contains UFC fight statistics, continously updated with data from latest events.
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.
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()
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.