knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

R-CMD-check Coverage Status CRAN status

uncmbb

This package contains the University of North Carolina (UNC) Men's basketball team's (and their archrival Duke's) match results since 1949-1950 season with select match attributes. Base match records are obtained from the source (1) below and augmented from the source (2):

  1. https://www.sports-reference.com/cbb/schools/north-carolina/
  2. https://www.tarheeltimes.com/schedulebasketball-1949.aspx

Any data discrepancies are fixed once they are identified.

Installation

install.packages("uncmbb")

Or install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("joongsup/uncmbb")

Example

library(uncmbb)
library(dplyr)

# Match data
tail(unc)

# NCAA championship seasons
mbb_champ_season(unc)

# Highest regular season win percentage
unc %>% mbb_season_result() %>%
        filter(Type == "REG") %>%
        arrange(desc(pct_win)) %>%
        head(5)


joongsup/uncmbb documentation built on Jan. 6, 2021, 3:44 a.m.