Runs a function fun twice, once with the leagueHistory set to TRUE and once set to FALSE. Combined the output of both runs into a single data frame.

combine_history(fun, ...)

Arguments

fun

A function with the leagueHistory argument.

...

Additional arguments passed to the function used in fun.

Value

A data frame of combined outputs.

Examples

combine_history(tidy_scores, leagueId = "252353")
#> Error: ESPN Fantasy API request failed [404]
#> Not Found (No League History?)