R/create_team_url.R

Defines functions nfl_create_team_url

Documented in nfl_create_team_url

#'Create a URL for team information
#'@team The team you want information from.
#'@type The type of information you want.
#'@export
nfl_create_team_url <- function(team, type = "draft"){

    first_part <- "https://www.pro-football-reference.com"

    if(type == "draft"){
        second_part <- "draft.htm"
    }

    paste0(first_part, team, second_part)
}
nickpaul7/npnfl documentation built on May 21, 2019, 2:30 a.m.