Changelog
Source:NEWS.md
manystates 1.0.3
Functions
- Fixed
generate_states()to avoid generation failure on rare edge cases - Improved
generate_states()to avoid preposition repetitions, prepositions beginning or ending state names, and other issues - Note that
generate_states()no longer uses the Markov chain approach advertised in the previous version, but generates more realistic names overall - Improved
generate_states()to include modifying prefixes according to real-world distributions
manystates 1.0.2
CRAN release: 2025-10-14
Functions
- Fixed lack of return documentation for
code_states()
manystates 1.0.0
Data
- Improved
states$GW- Fixed GW preparation script so that
$stateIDis coded correctly - Added
$StateNameAltfrom secondary labels in parentheses
- Fixed GW preparation script so that
- Improved
states$ISD- Updated ISD to version 2.2
- Fixed ISD preparation script so that
$Beginand$Endare coded correctly
- Improved
states$GGO- Renamed from
states$HUGGOto reflect new name of the dataset - Simplified GGO preparation script by exporting and working on clean csv
- Fixed current states ending as 9999-12-31 (closed #85)
- Removed ~64 duplicated or overlapping records (closed #84)
- Added details on many states (closed #83, thanks @myevrard)
- Added a codebook vignette for
states$GGO(closed #87)
- Renamed from
Functions
- Improved
code_states()- Now uses stringi exclusively
- Fixed Burgundy (BOU) identification in
code_states()(fixed #79) - Fixed various negative lookup bugs in regex patterns for e.g. Korea
- Added 172 new regex patterns to
code_states() - Added tests for
code_states()that cover all datasets instates - Added tests to make sure that no ISO reserved codes assigned
- Added tests to make sure that all states identified uniquely
- Improved
generate_states()- Now uses stringi exclusively
- Added
syllabise_states()for splitting state names into syllables - Improved state name generation algorithm to be based off of a Markov chain of syllables
- Improved state name generation algorithm to better match the length distribution of real state names
- Added checks to avoid generating existing, duplicate, or awkward state names
- Added tests for
generate_states()
- Added
filter_datacube()in manydata to filter the state system by a given year (closed #77)
manystates 0.3.1
Package
- Moved
code_states()function from{manypkgs}to be user-facing - Added
code_states()to website - Improved regex matches for
code_states() - Added tests for
code_states()
manystates 0.3.0
Package
- Added package startup message
- Updated references from database to datacube
- Updated website, linking to manytreaties and manyigos
- Updated github workflows
Data
- Updated
states- Renamed
states$HUGGO_STATEStostates$HUGGO - Improved
states$HUGGOby adding missing state names - Improved
states$HUGGOby adding missing latitude/longitudes, where possible - Improved country coding in
states$ICOW - Added
stateIDfor datasets without this variable usingmanypkgs::code_states()(closes #71) - Renamed
BegvariableBeginin all datasets (closes #67) - Fixed RATRULES citation
- Dropped economic freedom dataset (closes #66)
- Reordered variables so that shared variables lead datasets
- Renamed
- Updated
contiguity- Rearranged
contiguityvariables - Renamed
contiguity$HUGGO_CONTtocontiguity$HUGGO - Renamed
contiguity$COW_DIRCONTtocontiguity$COW - Dropped additional variables in
contiguity$HUGGOas duplicates ofstates$HUGGO
- Rearranged
- Updated related tests
- Improved variable mapping explanation (closes #68)
- Improved dataset documentation by making it computational
- Dropped
leadersandregimes
manystates 0.2.0
Package
- Closed #61 by updating functions to import Varieties of Democracy data from the Github package with standardised variable names.
- Updated
import_vdem(),import_vparty(), andimport_cshapes()function by fixing CMD warnings and notes. - Closed #54 by moving
code_states()to{manypkgs}for consistency across packages. - Added first draft of vignette to publicize manystates data.
- Updated pkgdown.yml file
Data
- Closed #57 by replacing GNEVAR datasets with HUGGO datasets for handcoded data in
states,leaders, andcontiguitydatabases. - Added some missing state names (
StateNamevariable) and regions (Regionvariable) inHUGGO_STATESdataset.
manystates 0.1.1
Functions
- Added
generate_states()for generating lists of fictional state names
manystates 0.1.0
Package
- Updated regex for
code_states()to more accurately match and translate states’ names. - Updated workflow files to include package caching.
- Re-rendered documentation using
messydates::mreport(). - Added
{cshapes}and{vdemdata}dependencies
Data
- Added data across databases
- Closed #9 by adding ICOW datasets to
statesdatabase. - Closed #24 by adding Economic Freedom datasets to
economicsdatabase. - Closed #25 by adding Freedom House data to
regimesdatabase. - Closed #48 by adding data on states’ ratification rules to
ratrulesdatabase. - Closed #49 by adding Colonial Relations data from ICOW dataset to
colsrelsdatabase. - Closed #50 by adding self-coded data on the latitude and longitude of state capitals as
GNEVAR_STATESdataset instatesdatabase. - Closed #51 by adding contiguity and regions data from FAO and ICOW in
contiguitydatabase.
- Closed #9 by adding ICOW datasets to
- Changed class for date variables (
BegandEnd) frommessydttomdateusingmessydates::as_messydate()in preparation scripts across databases.
manystates 0.0.6
Package
- Fixed #43 by extending the regex pattern matching process of
code_states() - Changed the package name from
{qStates}to manystates