https://github.com/knapply/epr
Ethnic Power Relations Data and Associated Analytical Routines
https://github.com/knapply/epr
Last synced: about 1 year ago
JSON representation
Ethnic Power Relations Data and Associated Analytical Routines
- Host: GitHub
- URL: https://github.com/knapply/epr
- Owner: knapply
- License: gpl-3.0
- Created: 2020-04-27T13:10:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T14:35:12.000Z (about 6 years ago)
- Last Synced: 2025-01-16T03:14:26.315Z (over 1 year ago)
- Language: R
- Homepage: https://knapply.github.io/epr/
- Size: 85.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
title: "`{epr}`"
output:
github_document:
html_preview: true
toc: true
toc_depth: 2
html_document:
keep_md: yes
always_allow_html: yes
editor_options:
chunk_output_type: console
---
```{r, echo=FALSE}
knitr::opts_chunk$set(
# collapse = TRUE,
fig.align = "center",
comment = "#>",
fig.path = "man/figures/",
message = FALSE,
warning = FALSE
)
options(width = 150)
```
[](https://github.com/knapply/epr/actions?workflow=R-CMD-check)
[](https://github.com/knapply/epr/commits/master)
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://www.r-project.org/)
[](http://hits.dwyl.io/knapply/epr)
# Introduction
`{epr}` provides Ethnic Power Relations data and associated analytical routines.
# Installation
```{r, eval=FALSE}
if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")
remotes::install_github("knapply/epr")
```
# Usage
```{r}
library(epr)
```
```{r}
epr_df
epr_status_codes_df
```
```{r}
library(data.table)
options(datatable.print.trunc.cols = TRUE)
merge(as.data.table(epr_df), epr_status_codes_df,
all.x = TRUE, by = "status")
```
```{r}
library(dplyr)
epr_df %>%
left_join(epr_status_codes_df)
```