vignettes/listmyleagues.Rmd
listmyleagues.Rmd
Suppose now we are interested in listing the classic mini-leagues of which you are a member and your current rank in those mini-leagues?
First we fetch the entry information using get_entry:
Next we select the classic league details and the relevant data columns using dplyr:
library(dplyr)
##
## Vedhæfter pakke: 'dplyr'
## De følgende objekter er maskerede fra 'package:stats':
##
## filter, lag
## De følgende objekter er maskerede fra 'package:base':
##
## intersect, setdiff, setequal, union
df$leagues$classic %>% select(name,entry_last_rank) # selecting the columns of interest here
## name entry_last_rank
## 1 Arsenal 0
## 2 Netherlands 0
## 3 Gameweek 1 0
## 4 Overall 0
## 5 youtube.com/letstalkfpl 0
## 6 @FPLHINTS (No Room for Racism) 0
## 7 FPLSwedes league 0
## 8 Randolph FPL 21-22 0
## 9 Reev League 0