Data Cart

Your data extract

0 variables
0 samples
View Cart
MUNHDCO
Colombia, Municipality head town

Codes and Frequencies



An 'X' indicates the category is available for that sample

10Head townXXXXX
20Not head townX····
21Population center··XXX
22Administrative center·X···
23Small village·X···
24Dispersed population··XXX
29Not head town, unspecified·X···
99Unknown·X···

Explore how IPUMS created this variable

Download


      class Munhdco : public Editor {

public:
  Munhdco(VarPointer varInfo) : Editor(varInfo) {}
  void edit() {

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::co1985a: {
      if (CO1985A_0003(0) > 0 && CO1985A_0003(0) < 900)
        a = 21;
      if (CO1985A_0003(0) >= 900)
        a = 24;
    } break;
    }

    setData(a);
  }
};