Data Cart

Your data extract

0 variables
0 samples
View Cart
MIG1_10_ES
Communities and Autonomous Cities of residence 10 years ago, Spain; consistent boundaries, GIS

Codes and Frequencies



Loading Frequency Data...

Can't find the category you are looking for? Try the Detailed codes

Explore how IPUMS created this variable

Download


      class Mig1_10_es : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::es1981a: {
      if (ES1981A_0410() == 0 && ES1981A_0408() <= 1971 &&
          ES1981A_0016(0) != 99)
        a = GEO1_ES(0);
      if (ES1981A_0410() == 0 && ES1981A_0408() <= 1971 &&
          ES1981A_0016(0) == 99)
        a = 724098;
    } break;
    case dataset_id::es1991a: {
      if (ES1991A_0426() == 99 && ES1991A_0410() <= 1981)
        a = GEO1_ES(0);
    } break;
    }

    setData(a);
  }
};