R/teams.R

Defines functions fpl_get_teams

Documented in fpl_get_teams

#' Get data on teams
#'
#' Retrieve data on teams in the current FPL season, obtained via the
#' \href{https://fantasy.premierleague.com/drf/teams}{teams endpoint}.
#'
#' @return a tibble
#'
#' @export
#'
#' @examples
#' \donttest{
#' fpl_get_teams()
#' }

fpl_get_teams <- function() {

  as_tibble(fpl_get_bootstrap()$teams)

}
ewenme/fplR documentation built on April 20, 2020, 11:53 a.m.