View source: R/filter_standard_cev.R
filter_standard_cev | R Documentation |
Filter records to replicate results presented in the CEV methodology report.
filter_standard_cev(replicates_data, violation, perp_change = TRUE)
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 |
A filtered data frame.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.