R Tools for Political Measures
Overview
This is a collection of data and functions for common metrics in political science research. Data measuring ideology, and functions calculating geographical diffusion and ideological diffusion - geog.diffuse() and ideo.dist(), respectively. Functions derived from methods developed in: Soule and King (2006) doi:10.1086/499908, Berry et al. (1998) doi:10.2307/2991759, Cruz-Aceves and Mallinson (2019) doi:10.1177/0160323X20902818, and Grossback et al. (2004) doi:10.1177/1532673X04263801.
Install
Health
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespaces in Imports field not imported from: ‘MASS’ ‘car’ ‘formula.tools’ ‘ggplot2’ ‘gplots’ ‘graphics’ ‘purrr’ ‘rstatix’ ‘stringr’ ‘tidyverse’ All declared Imports should be used.
- NOTE11 OK, 2 NOTE2026-06-09
- ERROR10 OK, 2 NOTE, 1 ERROR2026-06-08
- WARNING10 OK, 2 NOTE, 1 WARNING2026-06-07
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 7
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 29%
Downloads
Dependencies
Installing polimetrics adds 136 packages (68 with compiled code, 101 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.2.1.14Latest2022-01-17 · current release
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-01-17
- Total releases
- 1 / 4 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.2.3
- Bundled data
- 72 KB / 5 files
- Download size
- 87 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("polimetrics")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.