Learn R Programming

verdata (version 1.0.2)

confirm_files: Confirm files are identical to the ones published.

Description

Confirm files are identical to the ones published.

Usage

confirm_files(replicates_dir, violation, replicate_nums, version)

Value

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.

Arguments

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.

Examples

Run this code
local_dir <- system.file("extdata", "right", package = "verdata")
confirm_files(local_dir, "reclutamiento", c(1, 2), version = "v1")

Run the code above in your browser using DataLab