R/get_play_types.R

Defines functions get_play_types

Documented in get_play_types

#'@title Get the available play type values
#'
#'@description Get the available play type values
#'
#'@examples
#'
#'@export

get_play_types <- function(){
	rawPlayTypes <- get_CFB_json_from_url('play/types')
	playTypes <- data.frame(PlayTypeId = rawPlayTypes$id,
							PlayTypeName = rawPlayTypes$text,
							PlayTypeAbbr = rawPlayTypes$abbreviation,
							stringsAsFactors = FALSE)
	return(playTypes)
}
zmalosh/CollegeFootballDataR documentation built on Nov. 5, 2019, 1:28 p.m.