https://github.com/joongsup/uncmbb
UNC men's basketball match result
https://github.com/joongsup/uncmbb
basketball carolina college duke ncaam north-carolina unc
Last synced: 8 months ago
JSON representation
UNC men's basketball match result
- Host: GitHub
- URL: https://github.com/joongsup/uncmbb
- Owner: joongsup
- Created: 2017-02-27T07:21:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-04T08:08:46.000Z (over 5 years ago)
- Last Synced: 2025-09-08T16:12:21.005Z (10 months ago)
- Topics: basketball, carolina, college, duke, ncaam, north-carolina, unc
- Language: R
- Size: 390 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
[](https://github.com/joongsup/uncmbb/actions)
[](https://codecov.io/github/joongsup/uncmbb?branch=master)
[](https://cran.r-project.org/package=uncmbb)
# 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
```{r cran-installation, eval = FALSE}
install.packages("uncmbb")
```
Or install the development version from GitHub with:
```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("joongsup/uncmbb")
```
## Example
```{r 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)
```