Scrapes FantasyPros ranks from the specified page (and optionally, returns metadata).

fp_projections(page, ..., sport = NULL, include_metadata = NULL)

Arguments

page

which page

...

named arguments to pass as query parameters

sport

the sport to look up, defaults to nfl

include_metadata

logical - default FALSE (only return tibble), if TRUE returns list with both tibble and metadata

Examples

# \donttest{
if(interactive()){
  fp_projections("qb")
  fp_projections("wr", year = 2016, week = 2, scoring = "PPR")
  fp_projections("flex", year = 2020, week = 7, scoring = "PPR", `min-yes`="true", `max-yes`="true")

  fp_projections("hitters", `min-yes` = "true", `max-yes` = "true", sport = "mlb")
  fp_projections("pitchers", sport = "mlb")

  fp_projections("overall", sport = "nba")
}
# }