Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 1 committers (100.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.7%) to scientific vocabulary
Last synced: 11 months ago
·
JSON representation
Repository
Compute Apportionments
Basic Info
- Host: GitHub
- Owner: christopherkenny
- License: other
- Language: R
- Default Branch: main
- Homepage: http://christophertkenny.com/apportion/
- Size: 1.47 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Created over 3 years ago
· Last pushed 11 months ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# apportion
[](https://github.com/christopherkenny/apportion/actions/workflows/R-CMD-check.yaml)
`apportion` provides different apportionment methods for allocating seats across states. These methods are also sometimes used for allocating seats by votes in proportional representation systems.
## Installation
You can install the development version of `apportion` like so:
``` r
remotes::install_github('christopherkenny/apportion')
```
## Example
`apportion` has several apportionment methods, each of which take two required arguments:
- `size`: the number of seats to apportion across units
- `pop`: a vector of population sizes for each unit
```{r example}
library(apportion)
## basic example code
data('state_2020')
app_adams(size = 435, pop = state_2020$pop)
```
Implemented methods include:
- the Adams Method (`app_adams()`)
- the Balinski Young Method (`app_balinski_young()`)
- the Dean Method (`app_dean()`)
- the D'Hondt Method (`app_dhondt()`)
- the Hamilton-Vinton Method (`app_hamilton_vinton()`)
- the Huntington-Hill Method (`app_huntington_hill()`)
- the Jefferson Method (`app_jefferson()`)
- the Webster Method (`app_webster()`)
Owner
- Name: Christopher T. Kenny
- Login: christopherkenny
- Kind: user
- Location: Cambridge, MA
- Company: Harvard University
- Website: https://www.christophertkenny.com
- Twitter: chris_t_kenny
- Repositories: 78
- Profile: https://github.com/christopherkenny
Redistricting and rstats. Harvard University, PhD Candidate, Department of Government. Cornell '19.
GitHub Events
Total
- Release event: 1
- Watch event: 1
- Push event: 3
Last Year
- Release event: 1
- Watch event: 1
- Push event: 3
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Christopher Kenny | c****4@c****u | 9 |
Committer Domains (Top 20 + Academic)
cornell.edu: 1
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 228 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: apportion
Apportion Seats
- Homepage: https://github.com/christopherkenny/apportion
- Documentation: http://cran.r-project.org/web/packages/apportion/apportion.pdf
- License: MIT + file LICENSE
-
Latest release: 0.0.2
published 11 months ago
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Average: 34.2%
Stargazers count: 35.2%
Dependent repos count: 35.5%
Downloads: 42.0%
Maintainers (1)
Last synced:
11 months ago