Learn R Programming

acledR (version 1.0.1)

acled_transform_wider: Reverse Transform ACLED Data from Long to Wide

Description

Function to convert your ACLED's API calls (if monadic) back into the original dyadic forms.

Usage

acled_transform_wider(data, type = "full_actors")

Value

A tibble with the data transformed back into wide form.

Arguments

data,

a dataframe or tibble containing your dataset.

type,

a character string. One of five types: full_actors, main_actors, assoc_actors, source, or all.

  • full_actors: All actor and associated actor columns

  • main_actors: Actor 1 and Actor 2 columns

  • assoc_actors: All associated actor columns

  • source: The source column becomes dyadic

  • api_monadic: Use this option for data that is the output of the API's monadic option.

See Also

Other Data Manipulation: acled_transform_interaction(), acled_transform_longer()