get_accounts: Get lists of Russian or Chinese Diplomats

View source: R/get_accounts.R

get_accountsR Documentation

Get lists of Russian or Chinese Diplomats

Description

Get lists of Russian or Chinese Diplomats

Usage

get_accounts(country, group = c("diplomats"), online = T)

Arguments

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.

Value

returns data.frame with twitter handles and details on dipomats

Note

tbc

References

tbc

Examples

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)


schliebs/disinfo documentation built on April 17, 2024, 2:26 a.m.