knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of sRdpData is to provide you with easy, programmatic access to data on all self-determination groups and organizations, the countries that they are challenging, their start and end years, and their use of violent and non-violent tactics. This package is part of the Strategies of Resistance Data Project.
From the R console, type:
install.packages("sRdpData")
You can install the development version of sRdpData from GitHub with:
# install.packages("devtools") devtools::install_github("hgoers/sRdpData")
library(sRdpData) # Access organization-level data srdp_orgs() # In organization-year dyads, or srdp_orgs(wide = TRUE) # At the organization-level # Access group-level data in much the same way srdp_groups() # In group-year dyads, or srdp_groups(wide = TRUE) # At the group-level
library(sRdpData) srdp_tactics()
library(sRdpData) library(tidyverse) srdp_orgs() %>% group_by(year) %>% summarise(n = n()) %>% ggplot(aes(x = year, y = n)) + geom_line() + theme_minimal() + labs(title = "Number of organizations active each year, 1960-2005", x = "Year", y = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.