Learn R Programming

verdata (version 1.0.2)

filter_standard_cev: Filter records to replicate results presented in the CEV methodology report.

Description

Filter records to replicate results presented in the CEV methodology report.

Usage

filter_standard_cev(replicates_data, violation, perp_change = TRUE)

Value

A filtered data frame.

Arguments

replicates_data

A data frame with data from all replicates to be filtered.

violation

Violation to be analyzed. Options are "homicidio", "secuestro", "reclutamiento", and "desaparicion".

perp_change

A logical value indicating whether victims in years after 2016 with perpetrator values (indicated by p_str) of the FARC-EP ("GUE-FARC") should be reassigned to other guerrilla groups (p_str value "GUE-OTRO").

Examples

Run this code
# \donttest{
local_dir <- system.file("extdata", "right", package = "verdata")
replicates_data <- read_replicates(local_dir, "reclutamiento", c(1, 2), version = "v1")
filter_standard_cev(replicates_data, "reclutamiento", perp_change = TRUE)
# }

Run the code above in your browser using DataLab