R/get_conferences.R

Defines functions get_conferences

Documented in get_conferences

#'@title Gets all supported conferences (current and historical)
#'
#'@description Gets all supported conferences (current and historical)
#'
#'@examples
#'
#'@export

get_conferences <- function(){
	rawConferences <- get_CFB_json_from_url('conferences')
	conferences <- data.frame(ConferenceId = rawConferences$id,
							  ConferenceName = rawConferences$name,
							  ConferenceFullName = rawConferences$short_name,
							  ConferenceAbbr = rawConferences$abbreviation,
							  stringsAsFactors = FALSE)
	return(conferences)
}
zmalosh/CollegeFootballDataR documentation built on Nov. 5, 2019, 1:28 p.m.