From 674ef09e107de948a9183b991b96f69314a0d867 Mon Sep 17 00:00:00 2001 From: Erik de Vries Date: Sat, 6 Jul 2019 14:47:58 +0200 Subject: [PATCH] query_gen_actors: added junior minister check to if statement --- R/query_gen_actors.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/query_gen_actors.R b/R/query_gen_actors.R index bab3546..c44bb24 100644 --- a/R/query_gen_actors.R +++ b/R/query_gen_actors.R @@ -66,7 +66,7 @@ query_gen_actors <- function(actor, country, pre_tags, post_tags) { } ### Generating queries for individuals (ministers, PM, Party leaders and MPs) - if (actor$`_source.function` == "Minister" | actor$`_source.function` == "PM" | actor$`_source.function` == "PartyLeader" | actor$`_source.function` == "MP") { + if (actor$`_source.function` == "JunMin" | actor$`_source.function` == "Minister" | actor$`_source.function` == "PM" | actor$`_source.function` == "PartyLeader" | actor$`_source.function` == "MP") { ## Adding a separate AND clause for inclusion of only last name to highlight all occurences of last name ## Regardless of whether the last name hit is because of a minister name or a full name proximity hit