DL_Soccerway_download_logo: DL_Soccerway_download_logo

Description Usage Arguments Examples

Description

Download logos to the specified folder, which is a subfolder of the working directory. If the folder doesn't exist then create it.

Usage

1
2
(DL.input, subfolder = "~/Desktop/Logos",
  overwrite = FALSE)

Arguments

DL.input

a tibble that should contain columns FileName (string, with extension) and LogoURL.

subfolder

the name of the subfolder where to store thelogos, e.g. "~/Desktop/Logos"

overwrite

if TRUE then download all logos and overwrite existing logos in the folder with the same name

Examples

1
2
3
setwd("/Users/tristanbains/Desktop/R/rFootballAnalysis");lg="RUS2";
lgs=substr(lg,1,3);df = DL_Soccerway_data(lg); df.logos = (lgs,df$URL.logo);
DL.input = df.logos %>% mutate(FileName=paste0(CountryCode," - ",Team,".png"));(DL.input)

tristanbains/rFootballAnalysis documentation built on May 8, 2019, 9:47 a.m.