Learn R Programming

manifestoR (version 1.5.0)

split_belgium: Split Belgium party system into separate groups

Description

Recodes the country variable of a dataset to 218 (Flanders parties) and 219 (Wallonia parties) from 21 for Belgium

Usage

split_belgium(
  data,
  wallonia_parties = c(21111, 21322, 21422, 21423, 21425, 21426, 21522, 21911),
  brussels_parties = c(21424, 21912),
  belgium_parties = c(21320, 21420, 21520),
  flanders_parties = c(21112, 21221, 21321, 21330, 21421, 21430, 21521, 21913, 21914,
    21915, 21916, 21917),
  presplit_countrycode = 21,
  ...
)

Arguments

data

data.frame in format of the Manifesto Project's Main Dataset

wallonia_parties

Party codes for the Wallonia half

brussels_parties

Party codes for Brussel specific parties, are recoded to NA

belgium_parties

Party codes for complete system, coded as presplit_countrycode

flanders_parties

Party codes for the Flanders half

presplit_countrycode

Country code for the belgium_parties

...

ignored