download_to_superwide: Transforms the downloaded coding to 'superwide' format

download_to_superwideR Documentation

Transforms the downloaded coding to 'superwide' format

Description

Superwide format creates one row for every event_report. It then creates a separate variable for every table, variable, value combination and counts the number of instances associated with event report. For example the event report has one Conservative perpetrator then the superwide record variable will be actors_perpetrator_cons_tor_union and the superwide value for that variable will be 1. Currently the locations are processed with a hack - choosing the first location of each type associated with an event report.

Usage

download_to_superwide(
  evp_coding_download,
  coding_mode_only = TRUE,
  coding_complete_only = TRUE
)

Arguments

evp_coding_download

The result of a get_coding().

coding_mode_only

Whether to include only results from coding undertaken in by users in 'coding mode'.

coding_complete_only

Whether to include only results where coding is marked as complete.


gidonc/durhamevp documentation built on April 8, 2022, 10:31 a.m.