R/phases.R

Defines functions fpl_get_phases

Documented in fpl_get_phases

#' Get data on phases
#'
#' Retrieve phases data for the current FPL season, obtained via the
#'  \href{https://fantasy.premierleague.com/api/bootstrap-static}{bootstrap-static API endpoint}.
#'
#' @return a tibble
#'
#' @export
#'
#' @examples
#' \donttest{
#' fpl_get_phases()
#' }
fpl_get_phases <- function() {

  as_tibble(fpl_get_bootstrap()$phases)

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