--- title: "How to use ceblR" author: "David Awosoga" date: "`r Sys.Date()`" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{ceblR-how-to-use} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r, include = FALSE} knitr::opts_chunk$set( collapse = TRUE, warning = FALSE, message = FALSE, comment = "#>" ) ``` ## Overview This vignette will outline how to use the functions in the `ceblR` package to access data from the Canadian Elite Basketball League (CEBL). ## Installation You can install the development version of [**```ceblR```**](https://github.com/awosoga/ceblR) from [GitHub](https://github.com/awosoga/ceblR) with: ```{r installation, eval=FALSE} # install.packages("remotes") remotes::install_github("awosoga/ceblR") ``` ```{r setup} library(ceblR) library(dplyr) ``` ## Usage The following code snippets will provide information on how to access different CEBL statistics. ### Schedules Use `load_cebl_schedule_data()` to access the CEBL schedule data. ```{r schedules} load_cebl_schedules <- load_cebl_schedule(2020) glimpse(load_cebl_schedules) ``` ### Team Boxscores Use `load_cebl_team_boxscores()` to access team boxscore outputs. ```{r team_boxscores} load_cebl_team_boxscores <- load_cebl_team_boxscores(2020) glimpse(load_cebl_team_boxscores) ``` ### Player Boxscores Use `load_cebl_player_boxscores()` to access individual player boxscore outputs. ```{r player_boxscores} load_cebl_player_boxscores <- load_cebl_player_boxscores(2020) glimpse(load_cebl_team_boxscores) ``` ### Officials Use `load_cebl_officials()` to access the officials data. ```{r officials} load_cebl_officials <- load_cebl_officials(2020) glimpse(load_cebl_officials) ``` ### Coaches Use `load_cebl_coaches()` to access the coaches data. ```{r coaches} load_cebl_coaches <- load_cebl_coaches(2020) glimpse(load_cebl_coaches) ``` ### Play-by-Play Use `load_cebl_pbp()` to access the play-by-play data. ```{r play_by_play} load_cebl_pbp <- load_cebl_pbp(2020) glimpse(load_cebl_pbp) ```