View source: R/confirm_files.R
confirm_files | R Documentation |
Confirm files are identical to the ones published.
confirm_files(replicates_dir, violation, replicate_nums, version)
replicates_dir |
Directory containing the replicates. The name of the files must include the violation in Spanish and lower case letters (homicidio, secuestro, reclutamiento, desaparicion). |
violation |
Violation being analyzed. Options are "homicidio", "secuestro", "reclutamiento", and "desaparicion". |
replicate_nums |
A numeric vector containing the replicates to be analyzed. Values in the vector should be between 1 and 100 inclusive. |
version |
Version of the data being read in. Options are "v1" or "v2". "v1" is appropriate for replicating the replicating the results of the joint JEP-CEV-HRDAG project. "v2" is appropriate for conducting your new analyses of the conflict in Colombia. |
A data frame row with replicate_num
rows and two columns:
replicate_path
, a string indicating the path to the replicate checked and
confirmed
, a boolean values indicating whether the replicate contents match
the published version.
local_dir <- system.file("extdata", "right", package = "verdata")
confirm_files(local_dir, "reclutamiento", c(1, 2), version = "v1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.