get_accounts | R Documentation |
Get lists of Russian or Chinese Diplomats
get_accounts(country, group = c("diplomats"), online = T)
country |
currently supports "RU" and "CN" (or both: c("RU","CN")) |
group |
currently supports "diplomats" |
online |
whether most recent version of data should be pulled, as opposed to only loaded when package is installed. Requires internet connection. |
returns data.frame with twitter handles and details on dipomats
tbc
tbc
options(tidyverse.quiet = TRUE)
library(tidyverse)
ru_accs <-
get_accounts(country = "RU",group = "diplomats")
head(ru_accs,10)
ru_accs %>%
group_by(cat) %>%
mutate(n_cat = n()) %>%
group_by(cat,n_cat,gov_label = gov_label != "") %>%
summarise(n = n()) %>%
mutate(perc = n/n_cat) %>% filter(gov_label == T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.