Man pages for gidonc/durhamevp
ESRC/AHRC Victorian Election Violence Project R Code (Durham University)

add_event_id_from_clusteringAdds the event_id which uniquely identifies events (grouping...
allocate_from_dfAssign users to documents from a dataframe
allocate_randomlyRandomly assign a set of articles amongst a set of users for...
allocate_randomly_with_some_double_assignmentAssigns articles to users with some double coding and some...
assign_article_to_userAssign article to a user.
assign_autoclusters_to_userAssigns mutiple auto detected clusters to a single user.
assign_autocluster_to_userAssign autodetected cluster to a user.
assign_clusters_from_dfAssigns event report to an autodetected cluster
assign_coding_to_environmentAssign election violence database objects to the global...
assign_eventreport_to_autoclusterAssign a single event report to an autodetected cluster on...
assign_reallocations_to_userAssigns mutiple single events for reallocation to clusters to...
assign_reallocation_to_userAssign single events to user for reallocation to clusters.
assign_verified_clusters_to_userAssigns multiple verified clusters to a single user for...
assign_verified_cluster_to_userAssign verified (and combined) clusters to user for...
bnaurl_to_idFunction to extract id portion of BNA url.
build_where_conditionConstructs where conditions for querying database.
check_sngramsCheck whether a tokenized corpus contains specific n-grams....
classifier_select_docsSubsets a dataframe of documents based on a classifier.
classifier_selection_descriptionClassifies new documents on a labeled training set...
classifier_selection_keywordsClassify documents based on keywords.
classifier_selection_ocrClassifies new documents on a labeled training set...
coding_summarySummary of coding of document allocation.
compare_summariesCompares summaries of coding by user.
compile_reportProduces a readable summary of event reports from the...
contains_wordsFunction to tally cases with and without a particular words
create_docsetsCreate training and test set document matrices
create_new_autocluster'create_new_autocluster' Creates a new autodetected cluster...
create_setsCreate training and test set from a corpus
date_to_boundary_yearReturns the set of electoral boundaries that were in place...
date_to_electionFinds the election relating to any specific date.
define_testsetReturns the test set document ids.
define_trainingsetReturns the training set document ids.
documents_to_actualRestrict a vector to document ids actually existing in the...
documents_to_latexConvert dataframe of documents to form suitable for asis...
download_to_superwideTransforms the downloaded coding to 'superwide' format
election_datesElection Dates and Basic Information.
evdb_connectSet connection to election violence database
ev_deathsElection Violence Deaths data.
ev_eventsElection Violence Event Level Data.
evp_classifierswrappers round classifiers
extract_coding_matchesCreates tibble of all matches from the election violence...
find_agreement_from_matchesChecks agreement on variables from dataframe of matched...
find_constFind constituency from latitude and longitude.
find_countyFinds county of a latitude and longitude.
get_allocationGet the articles currently allocated to the user.
get_allocation_connect_to_docsGet the allocation of articles to users (the unit of coding),...
get_archivesearchesReturns the table of searches which have been passed to the...
get_archivesearchresultsReturns the crawler search table
get_archivesearchsummaryonlyReturns the archivesearchessummaryonly table filtered by id
get_attributeReturns the tag table filtered by either attribute_id...
get_autodetected_cluster_allocationsGet the autodetcted cluster allocations currently allocated...
get_candidate_documentsReturns the candidate document table filtered by candidate...
get_candidates_fromarchivesearchresultsGets candidate documents from archivesearchresults.
get_classified_docsFunction to get documents from database which are classified...
get_clusteringDownload clustering process - all stages.
get_codingDownload all the coding on the database
get_combination_allocationsFinds combination allocations.
get_combination_clustersFinds combination clusters.
get_data_for_comparisonMatches elements from two document allocations (presumably...
get_distanceGets the Levenshtein distance between two separate rows after...
get_documentReturns the document table filtered by document id
get_event_reportReturns the event_report table filtered by event report id
get_similarity_scoreGets a similarity score between two strings
get_sortedUses a scoring matrix to decide which model (model answer)...
get_tagReturns the tag table filtered by either tag_id (primary key)...
get_userGets user details.
get_useractivitylogentryGet user logged activity
get_user_modeReturns table of current user modes
get_verified_clustersFinds verified clusters (and their existing size).
has_wordFunction to tally cases with and without a particular words
is_evp_coding_downloadCheck if object is an evp coding download.
is_location_tagsChecks if an object is a location_tags table
keyring_evp_availableChecks if an evp password is available.
killDbConnectionsKills all current database connections
manage_dbconsReturns a connection to the election violence database
map_points_on_backgroundplots sf points against background of a polygons (the_shapes)
month_contains_electionFinds the election relating to a month (where an election...
nb_keywordsTrain a naive bayes classifier and extract keywords as...
nb_testTrain a naive bayes classifier on a training dfm and asses...
preprocess_corpusPreprocess a text corpus and return a document feature matrix...
preprocess_ngramsPreprocess a text corpus including the creation of n-grams...
preprocess_sgramsPreprocess a text corpus including the creation of n-grams...
process_locationsCreates a wide version of the locations associated with event...
reallocate_from_dfAssign users to documents from a dataframe
reallocate_randomlyRandomly reassign a set of articles amongst a set of users...
reassign_article_to_userReassign article allocation to a new user.
remove_evp_db_poolRemove database pool
run_firststage_fcmFirst stage function of the article selection process taking...
run_firststage_nbchngFirst stage function of the article selection process taking...
searches_to_dfmConvert a set of search results to a dfm.
serialize_rowTurns a database row into a string
set_user_modeSets user mode
show_evp_tablesShows the tables in the database.
split_allocation_randomlyDivide a set of N*P articles amongst P users, giving N...
split_corpusPreprocess a text corpus and divide it into training and...
split_dfmDivide a document feature matrix into training and testing...
status_to_textConvert candidate document status to text
user_allocated_fromsetWhich items allocated (or not allocated) to user
user_docs_partisanmergerMitchell Newspaper Partisan Affiliation for Each user_doc.
users_to_actualRestrict a vector to user ids actually existing in the the...
gidonc/durhamevp documentation built on April 8, 2022, 10:31 a.m.