lichess_leaderboard | R Documentation |
This function takes in two parameters; how many players you want returned (max 200) and the speed variant. The result is a data frame for each game type
lichess_leaderboard(top_n_players, speed_variant)
top_n_players |
The number of players (up to 200) you want returned |
speed_variant |
A valid lichess speed variant to return the leaderboard for |
The leaderboard speed variant options include:
"ultraBullet", "bullet", "blitz", "rapid", "classical", "chess960", "crazyhouse", "antichess" , "atomic", "horde", "kingOfTheHill", "racingKings", "threeCheck"
a dataframe of the lichess top players based on speed_variant and top_n_players selected
## Not run: top10_blitz <- lichess_leaderboard(top_n_players = 10, speed_variant = "blitz") leaderboards <- purrr::map2_df(top_n_players = 10, c("ultraBullet", "bullet"), lichess_leaderboard) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.