igo_recode: Recode membership status values

igo_recodeR Documentation

Recode membership status values

Description

Converts the numeric membership status values in igo_year_format3, state_year_format3 and igo_dyadic() into factors. Use igo_recode_igoyear() with values from igo_year_format3, igo_recode_stateyear() with values from state_year_format3 and igo_recode_dyadic() with values from igo_dyadic().

Usage

igo_recode_igoyear(x)

igo_recode_stateyear(x)

igo_recode_dyadic(x)

Arguments

x

A numeric membership status value or vector of values to recode.

Value

A factor with the recoded membership status values.

See Also

igo_year_format3, state_year_format3 and igo_dyadic() for the data corresponding to each recoding function.

Examples


data("igo_year_format3")

# Recode membership status values for selected states.
library(dplyr)

samp <- igo_year_format3 |>
  select(ioname:year, spain, france) |>
  filter(year > 2000) |>
  as_tibble()

glimpse(samp)

# Recode the membership columns.
samp |>
  mutate(
    spain = igo_recode_igoyear(spain),
    france = igo_recode_igoyear(france)
  ) |>
  glimpse()


igoR documentation built on Aug. 25, 2026, 5:08 p.m.