Skip to contents

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

Usage

acled_transform_longer(data, type = "full_actors")

Arguments

data,

dataframe or tibble containing your dataset.

type,

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 monadic

Value

A tibble with the data transformed into long form.

See also

Examples