post.processing: Post-Processing Nationalization Measures

Description Usage Arguments

View source: R/post-processing-nationalization.R

Description

This function serves to process completed nationalization measures to remove a number of inappropriate values or values that are not valuable for analysis. This function mostly cherry-picks specific cases, removing measures that do not make sense. In the future, this script could/should evolve to include more cases/problematic measures to filter, making this script an ever-evolving processing function.

Usage

1
post.processing(folderLocation, removeSingleConstituencies, rewriteLocation)

Arguments

folderLocation

Character string of the location in which nationalization data exists on the user's local machine. Note that this folder should be the location where ALL the files should be (i.e., "C:/Users/Name/Downloads/" if the files all exist in the downloads folder).

removeSingleConstituencies

Option for the user to remove countries that are a single, national constituency (i.e., countries/elections that are aggregated at the national-level, where cst_tot == 1) because a number of measures hold no value for countries aggregated nationally. This argument accepts TRUE or FALSE exclusively.

rewriteLocation

Character string of the folder location where the user would like the new, post-processed nationalization data to be rewritten. NOTE that if this argument is left blank/not-specified, the rewrite will take place in the folderLocation location, OVERWRITING the existing data files.


simongamerpage/nationalization documentation built on Dec. 23, 2021, 2:24 a.m.