split_belgium: Split Belgium party system into separate groups

Description Usage Arguments

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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


manifestoR documentation built on Jan. 13, 2021, 9:53 a.m.