-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcfbd_team_info.Rd
66 lines (62 loc) · 2.84 KB
/
cfbd_team_info.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cfbd_teams.R
\name{cfbd_team_info}
\alias{cfbd_team_info}
\title{\strong{Team info lookup}}
\usage{
cfbd_team_info(
conference = NULL,
only_fbs = TRUE,
year = most_recent_cfb_season()
)
}
\arguments{
\item{conference}{(\emph{String} optional): Conference abbreviation - Select a valid FBS conference
Conference abbreviations P5: ACC, B12, B1G, SEC, PAC,
Conference abbreviations G5 and FBS Independents: CUSA, MAC, MWC, Ind, SBC, AAC}
\item{only_fbs}{(\emph{Logical} default TRUE): Filter for only returning FBS teams for a given year.
If year is left blank while only_fbs is TRUE, then will return values for most current year}
\item{year}{(\emph{Integer} optional): Year, 4 digit format (\emph{YYYY}). Filter for getting a list of major division team for a given year}
}
\value{
\code{\link[=cfbd_team_info]{cfbd_team_info()}} - A data frame with 12 variables:
\describe{
\item{\code{team_id}: integer.}{Referencing team id.}
\item{\code{school}: character.}{Team name.}
\item{\code{mascot}: character.}{Team mascot.}
\item{\code{abbreviation}: character.}{Team abbreviations.}
\item{\code{alt_name1}: character.}{Team alternate name 1 (as it appears in \code{play_text}).}
\item{\code{alt_name2}: character.}{Team alternate name 2 (as it appears in \code{play_text}).}
\item{\code{alt_name3}: character.}{Team alternate name 3 (as it appears in \code{play_text}).}
\item{\code{conference}: character.}{Conference of team.}
\item{\code{division}: character.}{Division of team within the conference.}
\item{\code{color}: character.}{Team color (primary).}
\item{\code{alt_color}: character.}{Team color (alternate).}
\item{\code{logos}: character.}{Team logos.}
\item{\code{venue_id}: character.}{Referencing venue id.}
\item{\code{venue_name}: character.}{Stadium name.}
\item{\code{city}: character.}{Team/venue city.}
\item{\code{state}: character.}{Team/venue state.}
\item{\code{zip}: character.}{Team/venue zip code (someone double check Miami (FL) on if they're in the same zip code).}
\item{\code{country_code}: character.}{Team/venue country code.}
\item{\code{timezone}: character.}{Team/venue timezone.}
\item{\code{latitude}: character.}{Venue latitude.}
\item{\code{longitude}: character.}{Venue longitude.}
\item{\code{elevation}: character.}{Venue elevation.}
\item{\code{capacity}: character.}{Venue capacity.}
\item{\code{year_constructed}: character.}{Year the venue was constructed.}
\item{\code{grass}: character.}{TRUE/FALSE response on whether the field is grass or not (oh, and there are so many others).}
\item{\code{dome}: character.}{TRUE/FALSE flag for if the venue is a domed stadium.}
}
}
\description{
\strong{Team info lookup}
}
\examples{
\donttest{
try(cfbd_team_info(conference = "SEC"))
try(cfbd_team_info(conference = "Ind"))
try(cfbd_team_info(year = 2019))
}
}
\keyword{Teams}