Data Cart

Your data extract

0 variables
0 samples
View Cart
GEO2_CH
Switzerland, Regional Planning Unit 2011 - 2011 [Level 2;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 Geo2_ch : public Editor {
public:
  Geo2_ch(VarPointer varInfo) : Editor(varInfo) {}

  void edit() {
    auto result = getRecoded();

    if (dataSet == dataset_id::ch2011a) {
      result = MISSING;

      if (countPeople() > 0) {
        RecordPointer person_rec = people().front();
        auto source_data = getSourceData(person_rec);
        result = applyTransTable(source_data);
      }
    }
    setData(result);
  }
};