Closed YijieYin closed 3 years ago
When an id is passed in twice, the same connections show up twice. e.g.:
library(fafbseg) partners <- flywire_partner_summary(c('720575940637457779','720575940637457779')) partners[partners$weight>100,] #> # A tibble: 8 x 4 #> query post_id weight n #> <chr> <chr> <int> <int> #> 1 720575940637457779 720575940623936698 126 1 #> 2 720575940637457779 720575940654866305 126 1 #> 3 720575940637457779 720575940617511883 119 1 #> 4 720575940637457779 720575940619522821 114 1 #> 5 720575940637457779 720575940623936698 126 1 #> 6 720575940637457779 720575940654866305 126 1 #> 7 720575940637457779 720575940617511883 119 1 #> 8 720575940637457779 720575940619522821 114 1
obviously you can do:
ids=c('720575940637457779','720575940637457779') partners <- flywire_partner_summary(unique(ids))
but this isn't hard to catch inside the function either.
When an id is passed in twice, the same connections show up twice. e.g.: