Skip to content

assemblykor

0.1.4Package record

Korean National Assembly Data for Political Science Education

0packages depend
3.2Kdownloads / year
52.7%test coverage
13/13flavors OK

Overview

About

Provides ready-to-use datasets from the Korean National Assembly (assemblies 20 through 22, 2016-2026) for teaching quantitative methods in political science. Includes legislator metadata, bill proposals, roll call votes, asset declarations, and policy seminar records. Designed as a Korean politics counterpart to packages like 'palmerpenguins', enabling students to practice regression, panel data analysis, text analysis, and network analysis with real legislative data. Roll call vote data and spatial voting models are described in Poole and Rosenthal (1985) doi:10.2307/2111172. Legislative data is sourced from the Korean National Assembly Open API.

Changes in 0.1.4

This release corrects defects in the built-in data that releases 0.7.0 to

0.8.1 of the kna project (https://github.com/kyusik-yang/kna, CORRECTIONS.md

of 2026-09-26 to 2026-09-28) found in the same Open Assembly records, and

extends the 22nd assembly to 2026-09-23 and the asset declarations to 2025

with the kna 0.8.1 data. data-raw/kna070_corrections.R corrects the data

as of March 2026, and data-raw/refresh_kna081.R then rebuilds the 22nd

assembly and wealth. The 20th and 21st assemblies, seminars and

speeches keep their coverage. Column names are unchanged. New columns

were added, and the two columns whose meaning changes are marked below.

Coverage extended to September 2026

  • bills: 64,900 rows instead of 60,925. The 22nd assembly now has the 19,651 member bills proposed up to 2026-09-23 instead of 15,676, with their status on that date. 1,309 bills that were pending in March 2026 have a result, and 138 bills referred or re-referred after March 2026 have a new committee.
Show all changes in 0.1.4Hide the rest of the changes in 0.1.4
  • legislators: 963 rows instead of 948. The 15 members who took their seats between March and September 2026, 14 of them winners of the by-elections of 2026-06-11, were added. For the 22nd assembly party is the label of September 2026 (six members changed party) or, for members who had left the Assembly, the last label recorded, committees include the assignments up to 2026-09-23 and the bill counts cover the new bills.
  • roll_calls: 549,513 rows instead of 384,022, all 1,847 recorded votes of the 22nd assembly up to 2026-09-17, from the collection of kna 0.8.1. It includes the votes of the 16 members seated in 2026 that the API omits, which kna took from the LIKMS vote pages. party is the label of September 2026, which differs from March for three members, and district now comes from legislators, because the API of September 2026 gives district names of 2026 (such as 전남광주통합특별시) that did not exist at the 2024 election.
  • votes: 8,611 rows instead of 8,050, with the 22nd tallies up to 2026-09-17 (1,847 instead of 1,286). The earlier rows are unchanged.
  • wealth: 3,215 rows instead of 2,928, for 776 members. The 287 rows of wealth year 2025 come from the March 2026 regular disclosure (National Assembly Gazette No. 2026-54), as compiled in kna 0.8.1. The 2015-2024 rows are unchanged. year is the year the declared wealth refers to, published in March of the following year, and not the disclosure year as documented before.
  • get_bill_texts() changes source. It downloads a file hosted in this repository with the kna 0.8.1 texts of all 64,900 bills (80 have no text), and a new column source separates the texts scraped from the Legislative Information System, unchanged for the bills proposed by 2026-02-27, from the texts of the Open Assembly API. The cache file name changed.
  • get_proposers() covers the 64,900 bills (825,283 rows).

Data corrections (data as of March 2026)

  • legislators$seniority now gives the seniority at that assembly, as documented. It held the member's lifetime number of terms at the time of data collection, which overstated the seniority of 286 member-terms of the 20th and 21st assemblies. First-term members now number 150 in the 20th and 168 in the 21st, equal to the official counts, instead of 88 and 96.
  • legislators$committees now lists the committees the member served on in that assembly, from the dated assignment records. The old strings came from present-day committee lists and did not match the assembly for many members. They were empty for 233 rows, and are now empty only for the Speaker in the 22nd assembly.
  • legislators: six values of party_elected now give the party whose ticket or list the member was elected on, one 20th-assembly district and two district types (two proportional members recorded as constituency members) were corrected, the two 22nd-assembly members who took up vacant proportional seats in June 2025 now have the district 비례대표 instead of an empty string, and n_bills was recounted from the complete co-sponsorship records (582 rows change). The member who took up a vacant proportional seat of the 22nd assembly in March 2026 was added (948 rows instead of 947).
  • bills: the 11 vetoed bills that were rejected on the re-vote or expired at the end of the term kept the result of their first floor vote (passed as-is or passed with amendments). result now follows the re-vote. New logical columns vetoed (12 bills) and alt_vetoed (180 bills incorporated into a committee alternative that was vetoed and not passed again) make these cases visible.
  • roll_calls$party was documented as the party at the time of the vote. It is the party label that the API reported at data collection, written onto every past vote. The values are unchanged and the documentation is corrected. The new column party_elected gives the party at election. 53 votes cast on 2026-03-12 by the newly seated member, which the March 2026 collection missed, were restored. The vote API omits 이소희, who took up a vacant proportional seat on 2026-01-15, and her 230 rows of the votes up to 2026-03-12 were added from the LIKMS vote pages, as in kna 0.8.0. 171 of them are 불참, for votes at which she was seated but on no list (384,022 rows instead of 383,739).
  • seminars: seniority, total_terms, is_female, is_proportional, is_seoul and province now come from the member records of kna 0.7.0, matched on member_id and assembly. They were matched on the name alone, counted only the terms from the 17th assembly on, and applied one seat type and one region to every term of a member. seniority changes value in 1,128 rows, gains a value in 242 rows of the 22nd assembly and becomes NA in 272 rows. The attributes are NA for the 266 rows without member_id, mostly members of the outgoing assembly in election years and legislators who share a name with another member. province now uses the short province names and is NA for proportional-representation members.
  • speeches$member_id changes meaning. It held the numeric speaker identifier of the committee minutes, which did not match legislators$member_id for any speech. It is now the MONA_CD for the 12,060 speeches by members of the Assembly and NA for other speakers. The old values are kept in the new column speaker_id. 48 speeches of 2024-08-14 that appeared twice under two speaker identifiers were dropped (15,795 rows instead of 15,843).
  • get_proposers() changes source. It now downloads a file hosted in this repository and built from the kna 0.7.0 co-sponsorship records. The old file stopped at 100 names per bill, which left out 7,447 records of 208 bills, and is_lead was FALSE for the lead proposer of 36 single-proposer bills (777,220 rows instead of 769,773). A new column role separates co-proposers from supporters, who were both is_lead == FALSE. The cache file name changed, so a file cached by 0.1.3 is not reused.
  • get_speech_tokens() no longer holds a second copy of the tokens of the 48 duplicated speeches (663,582 rows instead of 665,055), and uses a new cache file name. Its documentation claimed that 56 speeches had no tokens. Every speech has tokens, and the 56 were repeated date/speech_order keys.

Documentation

  • votes$bill_id is unique except for bill 2000491, which has two tally rows in the source. The documentation and codebook said it was unique.
  • The roll_calls documentation said that the API has member-level votes for the 22nd assembly only. It also has the 20th and 21st.
  • The documentation of party_elected notes that the source records ten successors to proportional seats (three of them in roll_calls) under the party that the list party had merged into, not the list party.
  • Tutorial 8 (bill success) no longer counts the 180 alt_vetoed bills as passed, in all three tutorial formats. The introduction vignette no longer says that senior legislators propose more bills, which the data do not show. Row counts were updated in the README, vignettes, cheatsheet, tutorials and startup message.
  • Tutorial 4 (panel data) uses member_id instead of name as the individual fixed effect in its example of a time-invariant variable, in all three tutorial formats. With the corrected seminars attributes, two names each belong to a man and a woman, so a name fixed effect no longer absorbed is_female as the tutorial says.
  • Tutorial 7 (roll call analysis) builds its vote matrices on member_id, in all three tutorial formats, because two members of the 22nd assembly are now named 박지원.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.1 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
  • NOTE5 OK, 1 NOTE2026-04-08
Advisories

none known

Documentation

In release 0.1.4
READMEYes · 955 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 0.1.4Citation fileYes · software entry onlyWebsiteYes · pkgdown
Help pages
16includes a package overview page
Examples that run
80%12 run in a plain check (3 of them under a condition) · 3 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

3.2K
CRAN downloads in the past year
Rank #6,173 · ~9/day · ~268/mo
Daily download trend is not available in this view yet.
44830 days
1.4K90 days
3.2K1 year
Compare downloads with other packages →
Also on97 r2u35 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
2Releases
55Commits
1Commit identities
55 commits · Last activity 2026-09-29
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
1

Releases over time

2026-07-07 · 02026-09-29 · 2
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/kyusik-yang/assemblykor on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-09-29 · The repository has a site deploy workflow

pkgdown site last built 2026-09-29

Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-03-07
    Pull request it wrote: opened by a project member
    Commits: at least 54 crediting it in the message
Models named in its commits
  • Claude Opus 4.638 commits · Mar to Apr 2026
  • Claude Opus 5.510 commits · Sep 2026
  • Claude Fable 55 commits · Jul 2026
  • Claude Sonnet 4.61 commit · Apr 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)

Installing assemblykor adds no packages beyond those that come with R.

Depends (1)
R >= 3.5.0
Imports (1)
utils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.1 (2026)
Releases (4)

Pick two releases to compare their code metrics.

  • 0.1.4Latest
    record
    2026-09-29 · current release · diff ↗
  • 0.1.3
    record
    2026-07-28 · diff ↗ ·
    added 1 export
    get_speech_tokens
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.2
    record
    2026-04-15 · diff ↗
  • 0.1.1
    record
    2026-04-07
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-04-07
Total releases
4 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
4.5 MB / 7 files
Download size
5.4 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("assemblykor")

The package provides a citation file, so citation() returns the authors' own entry.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for assemblykor version 0.1.4 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy