R/data.R

#' Team Name Data
#'
#' @description Provides a data frame with ESPN team names for use in the wncaahoopR package.
#' @usage data(ids)
#'
#' @docType data
#' @format A data frame with ESPN team names to be used in the ncaahoopR package.
#' \describe{
#'  \item{team}{the name of the team to be suplied to function in ncaahoopR package}
#'  \item{id}{team id; used in ESPN URLs}
#'  \item{link}{team URL link; used in ESPN URLs}
#' }
#'
#' @details Simply look for the spelling of your deired team in the team column
#' to use in ncaahoopR functions.
#'
#' @examples
#' data(ids)
#'
"ids"

#' A data frame with team names from various college basketball sites
#'
#' @docType data
#' @format A data frame with team names from various college basketball sites
#' \describe{
#'  \item{NCAA}{the name of the team, as listed on the NCAA website}
#'  \item{ESPN}{the name of the team, as listed on the ESPN URLs}
#'  \item{ESPN_PBP}{the name of the team, as listed on the ESPN Play-By-Play logs}
#'  \item{Warren_Nolan}{the name of the team, as listed on WarrenNolan.com}
#'  \item{Trank}{the name of the team, as listed on barttorvik.com}
#'  \item{conference}{each team's conference}
#'  \item{name_247}{the name of the team, as listed on 247Sports.com}
#' }
#'
#' @details Convert between team names in various systems
#'
#' @examples
#' data(dict)
#'
"dict"

#' A data frame with team colors
#'
#' @docType data
#' @format A data frame with team colors
#' \describe{
#'  \item{ncaa_name}{the name of the team, as listed on the NCAA website (same as dict$NCAA)}
#'  \item{espn_name}{the name of the team, as listed on the ESPN URLs (same as dict$ESPN)}
#'  \item{primary_color}{hexcode for team's primary color}
#'  \item{secondary_color}{hexcode for team's secondary color, when available}
#'  \item{tertiary_color}{hexcode for team's tertiary color, when available}
#'  \item{color_4}{hexcode for team's 4th color, when available}
#'  \item{color_5}{hexcode for team's 5th color, when available}
#'  \item{color_6}{hexcode for team's 6th color, when available}
#'  \item{conference}{each team's conference}
#'  \item{logo_url}{location for each team's logo}
#' }
#'
#' @details Convert between team names in various systems
#'
#' @examples
#' data(ncaa_colors)
#'
"ncaa_colors"

#' A data frame with women's NCAA court dimensions.
#'
#' @docType data
#' @format A data frame with women's NCAA court dimensions
#'
#' @details use this dataframe with geom_polygon to draw a NCAA court.
#'
#' @examples
#' data(wcourt)
#'
"wcourt"

#' A data frame containing 
#'
#' @docType data
#' @format A data frame with win probabilities
#'
#' @details use this data frame for various win probability calculations
#'
#' @examples
#' data(wp_hoops)
#'
"wp_hoops"
snestler/wncaahoopR documentation built on Oct. 18, 2021, 2:11 p.m.