R/join_form_and_fixture_history.R

Defines functions join_form_and_fixture_history

join_form_and_fixture_history <- function() {

  get_prem_form() %>%
    left_join(
      get_prem_fixture_history(),
      by = c("fixture" = "fixture",
             "date" = "date",
             "team" = "team",
             "home" = "home")) %>%
    select(-fthg.y, -ftag.y) %>%
    rename(fthg = fthg.x, ftag = ftag.x)

}
dafyddhowells/randy documentation built on Nov. 1, 2022, 4:01 p.m.